diff options
author | Dustin Ingram <di@users.noreply.github.com> | 2019-04-18 15:33:20 -0500 |
---|---|---|
committer | Dustin Ingram <di@users.noreply.github.com> | 2019-04-18 15:33:20 -0500 |
commit | bccda86a4eb6c4c1f3600040f23e781e39a9f199 (patch) | |
tree | 51b3886bae3c88c331b3f23a98496ad59d7c95de | |
parent | 470e17003797e66578090576a888eab1c18565d5 (diff) | |
download | isort-bccda86a4eb6c4c1f3600040f23e781e39a9f199.tar.gz |
Relax RequirementsFinder test
The ordering of the found requirements isn't important here
-rw-r--r-- | test_isort.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py index e1d90d15..5f5c2ee7 100644 --- a/test_isort.py +++ b/test_isort.py @@ -2597,7 +2597,7 @@ def test_requirements_finder(tmpdir): files = list(finder._get_files()) assert len(files) == 1 # file finding assert files[0].endswith('requirements.txt') # file finding - assert list(finder._get_names(str(req_file))) == ['Django', 'deal'] # file parsing + assert set(finder._get_names(str(req_file))) == {'Django', 'deal'} # file parsing assert finder.find("django") == si.sections.THIRDPARTY # package in reqs assert finder.find("flask") is None # package not in reqs |