Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/i2mint/dol
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Jul 25, 2024
2 parents 6718c4e + 7d2e10b commit 7a5bbbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions dol/tests/test_dol_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,35 +77,35 @@ def cache_this_method(self):
# Test normal method
assert obj.normal_method == 1
captured = capsys.readouterr()
assert "normal_method called" in captured.out
assert 'normal_method called' in captured.out

assert obj.normal_method == 1
captured = capsys.readouterr()
assert "normal_method called" not in captured.out # Should not print again
assert 'normal_method called' not in captured.out # Should not print again

# Test property method
assert obj.property_method == 2
captured = capsys.readouterr()
assert "property_method called" in captured.out
assert 'property_method called' in captured.out

assert obj.property_method == 2
captured = capsys.readouterr()
assert "property_method called" not in captured.out # Should not print again
assert 'property_method called' not in captured.out # Should not print again

# Test cached_property method
assert obj.cached_property_method == 3
captured = capsys.readouterr()
assert "cached_property_method called" in captured.out
assert 'cached_property_method called' in captured.out

assert obj.cached_property_method == 3
captured = capsys.readouterr()
assert "cached_property_method called" not in captured.out # Should not print again
assert 'cached_property_method called' not in captured.out # Should not print again

# Test cache_this method
assert obj.cache_this_method == 4
captured = capsys.readouterr()
assert "cache_this_method called" in captured.out
assert 'cache_this_method called' in captured.out

assert obj.cache_this_method == 4
captured = capsys.readouterr()
assert "cache_this_method called" not in captured.out # Should not print again
assert 'cache_this_method called' not in captured.out # Should not print again
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dol
version = 0.2.50
version = 0.2.51
url = https://github.com/i2mint/dol
platforms = any
description_file = README.md
Expand Down

0 comments on commit 7a5bbbd

Please sign in to comment.