File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import casbin
15+ import os
1616from unittest import TestCase
17+ import casbin
1718from tests .test_enforcer import get_examples
1819from casbin .persist .adapters import FilteredFileAdapter
1920from casbin .persist .adapters .filtered_file_adapter import filter_line , filter_words
20- import tempfile
21- import shutil
22- import os
2321
2422
2523class Filter :
@@ -171,7 +169,7 @@ def test_empty_string_filter(self):
171169 self .assertTrue (e .has_policy (["admin" , "domain2" , "data2" , "read" ]))
172170
173171 def test_mixed_empty_filter (self ):
174- """测试混合空字符串和非空字符串的过滤器 """
172+ """Test the filter for mixed empty and non-empty strings. """
175173 adapter = FilteredFileAdapter (get_examples ("rbac_with_domains_policy.csv" ))
176174 e = casbin .Enforcer (get_examples ("rbac_with_domains_model.conf" ), adapter )
177175 filter = Filter ()
You can’t perform that action at this time.
0 commit comments