We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf57d3a + 1df4875 commit eb24ceaCopy full SHA for eb24cea
tests/test_orm_usage.py
@@ -2,6 +2,8 @@
2
3
from dataclasses import dataclass
4
5
+import pytest
6
+
7
from datafiles import datafile
8
from datafiles.utils import logbreak
9
@@ -67,3 +69,12 @@ class Bar:
67
69
bar = Bar(Nested(2))
68
70
71
expect(bar.nested.value) == 2
72
73
74
+@pytest.mark.xfail(reason='https://github.com/jacebrowning/datafiles/issues/139')
75
+def test_values_are_filled_from_disk(expect):
76
+ InventoryItem.objects.get_or_create(42, "Things", 0.99)
77
78
+ items = list(InventoryItem.objects.all())
79
80
+ expect(items[0]) == InventoryItem(42, "Things", 0.99)
0 commit comments