Skip to content

Commit

Permalink
Add test capturing the current behavior. Ref #106.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 22, 2024
1 parent bc7fbf5 commit f8e3873
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ def test_reads_files_with_attribute_assignment(self):
)
assert scripts.DepsReader(script).read() == ['foo']

def test_duplicate_definition(self):
script = textwrap.dedent(
"""
__requires__=['foo']
__requires__=['bar']
"""
)
assert scripts.DepsReader(script).read() == []

def test_reads_files_with_multiple_assignment(self):
script = textwrap.dedent(
"""
Expand Down

0 comments on commit f8e3873

Please sign in to comment.