diff options
| author | Timothy Crosley <timothy.crosley@gmail.com> | 2022-12-29 19:31:47 -0800 |
|---|---|---|
| committer | Timothy Crosley <timothy.crosley@gmail.com> | 2022-12-29 19:31:47 -0800 |
| commit | b20228c9820f94633eb9d5e38f976a0e98bdb16c (patch) | |
| tree | 1c7a422a987b6ae74842b8f955dd87611949e94f /tests | |
| parent | ec781c37a5411b4f403e753ac200c7df9c6e575e (diff) | |
| download | isort-b20228c9820f94633eb9d5e38f976a0e98bdb16c.tar.gz | |
Restore cruft usage
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_main.py b/tests/unit/test_main.py index 4c16cf51..a3c0a90b 100644 --- a/tests/unit/test_main.py +++ b/tests/unit/test_main.py @@ -1068,15 +1068,15 @@ def test_identify_imports_main(tmpdir, capsys): main.identify_imports_main(["-", "--packages"], stdin=as_stream(file_content)) out, error = capsys.readouterr() - len(out.split("\n")) == 2 + assert len(out.split("\n")) == 6 main.identify_imports_main(["-", "--modules"], stdin=as_stream(file_content)) out, error = capsys.readouterr() - len(out.split("\n")) == 2 + assert len(out.split("\n")) == 3 main.identify_imports_main(["-", "--attributes"], stdin=as_stream(file_content)) out, error = capsys.readouterr() - len(out.split("\n")) == 2 + assert len(out.split("\n")) == 3 def test_gitignore(capsys, tmpdir: py.path.local): |
