Skip to content

Commit c8e963e

Browse files
authored
Improve the locker test coverage by testing git rev and tag (#7749)
1 parent 28f708f commit c8e963e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/packages/test_locker.py

+12
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,16 @@ def test_locker_dumps_dependency_information_correctly(
874874
},
875875
)
876876
)
877+
package_a.add_dependency(
878+
Factory.create_dependency(
879+
"H", {"git": "https://github.com/python-poetry/poetry.git", "tag": "baz"}
880+
)
881+
)
882+
package_a.add_dependency(
883+
Factory.create_dependency(
884+
"I", {"git": "https://github.com/python-poetry/poetry.git", "rev": "spam"}
885+
)
886+
)
877887

878888
packages = [package_a]
879889

@@ -901,6 +911,8 @@ def test_locker_dumps_dependency_information_correctly(
901911
E = {{url = "https://python-poetry.org/poetry-1.2.0.tar.gz"}}
902912
F = {{git = "https://github.com/python-poetry/poetry.git", branch = "foo"}}
903913
G = {{git = "https://github.com/python-poetry/poetry.git", subdirectory = "bar"}}
914+
H = {{git = "https://github.com/python-poetry/poetry.git", tag = "baz"}}
915+
I = {{git = "https://github.com/python-poetry/poetry.git", rev = "spam"}}
904916
905917
[metadata]
906918
lock-version = "2.0"

0 commit comments

Comments
 (0)