We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8893d7c commit 0c2fdd1Copy full SHA for 0c2fdd1
tests/functional/test_make_persistent.py
@@ -1,5 +1,7 @@
1
import pytest
2
3
+from dataclay import DataClayObject
4
+from dataclay.exceptions import DataClayException
5
from dataclay.contrib.modeltest.family import Dog, Family, Person
6
from dataclay.contrib.modeltest.remote import MakePersistentTestClass
7
@@ -241,6 +243,15 @@ async def test_persistent_references_async(client):
241
243
assert person == family.members[0]
242
244
245
246
+def test_persistent_error_unknown_module(client):
247
+ class InvalidClass(DataClayObject):
248
+ pass
249
+
250
+ a = InvalidClass()
251
+ with pytest.raises(DataClayException):
252
+ a.make_persistent()
253
254
255
# Remote methods
256
257
0 commit comments