home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor save and remove methods of BaseObject subclasses.
[plomtask]
/
tests
/
utils.py
diff --git
a/tests/utils.py
b/tests/utils.py
index ccb485ad104cc37ae040a4b144093e69c75b87c0..fbe739d2e002137a4187ca09b19846ea63ccbedf 100644
(file)
--- a/
tests/utils.py
+++ b/
tests/utils.py
@@
-19,11
+19,11
@@
class TestCaseSansDB(TestCase):
"""Tests requiring no DB setup."""
checked_class: Any
"""Tests requiring no DB setup."""
checked_class: Any
- def check_id_setting(self) -> None:
+ def check_id_setting(self
, *args: Any
) -> None:
"""Test .id_ being set and its legal range being enforced."""
with self.assertRaises(HandledException):
"""Test .id_ being set and its legal range being enforced."""
with self.assertRaises(HandledException):
- self.checked_class(0)
- obj = self.checked_class(5)
+ self.checked_class(0
, *args
)
+ obj = self.checked_class(5
, *args
)
self.assertEqual(obj.id_, 5)
def check_versioned_defaults(self, attrs: dict[str, Any]) -> None:
self.assertEqual(obj.id_, 5)
def check_versioned_defaults(self, attrs: dict[str, Any]) -> None: