Skip to content

Commit

Permalink
Add test ids
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Feb 24, 2021
1 parent dfb28ac commit 8338272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cli_compile.py
Expand Up @@ -1564,26 +1564,31 @@ def test_duplicate_reqs_combined(
"",
["test-package-1===0.1.0\n"],
["test-package-1===0.1.0"],
id="pin package with ===",
),
pytest.param(
"",
["test-package-1==0.1.0\n"],
["test-package-1==0.1.0"],
id="pin package with ==",
),
pytest.param(
"test-package-1==0.1.0",
["test-package-1===0.1.0\n", "test-package-2==0.1.0\n"],
["test-package-1===0.1.0", "test-package-2==0.1.0"],
id="dep === pin preferred over == pin, main package == pin",
),
pytest.param(
"test-package-1==0.1.0",
["test-package-1===0.1.0\n", "test-package-2===0.1.0\n"],
["test-package-1===0.1.0", "test-package-2===0.1.0"],
id="dep === pin preferred over == pin, main package === pin",
),
pytest.param(
"test-package-1==0.1.0",
["test-package-2===0.1.0\n"],
["test-package-1==0.1.0", "test-package-2===0.1.0"],
id="dep == pin conserved, main package === pin",
),
),
)
Expand Down

0 comments on commit 8338272

Please sign in to comment.