Skip to content

Commit

Permalink
test: update test description for mixed filter
Browse files Browse the repository at this point in the history
  • Loading branch information
HashCookie committed Nov 25, 2024
1 parent 4cea495 commit fc516d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import casbin
import os
from unittest import TestCase
import casbin
from tests.test_enforcer import get_examples
from casbin.persist.adapters import FilteredFileAdapter
from casbin.persist.adapters.filtered_file_adapter import filter_line, filter_words
import tempfile
import shutil
import os


class Filter:
Expand Down Expand Up @@ -171,7 +169,7 @@ def test_empty_string_filter(self):
self.assertTrue(e.has_policy(["admin", "domain2", "data2", "read"]))

def test_mixed_empty_filter(self):
"""测试混合空字符串和非空字符串的过滤器"""
"""Test the filter for mixed empty and non-empty strings."""
adapter = FilteredFileAdapter(get_examples("rbac_with_domains_policy.csv"))
e = casbin.Enforcer(get_examples("rbac_with_domains_model.conf"), adapter)
filter = Filter()
Expand Down

0 comments on commit fc516d5

Please sign in to comment.