Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Feb 7, 2025
1 parent 766392f commit ba9e249
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/serdes/tests/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
@pytest.fixture
def valid_export_data():
return {
"meta": {"media_version": "1.0.0", "exported_at": datetime.now().isoformat()},
"meta": {
"media_version": "1.0.0",
"schema_version": 1,
"exported_at": datetime.now().isoformat(),
},
"objects": [
{
"model": "folder",
Expand Down Expand Up @@ -69,6 +73,7 @@ def test_empty_objects_list(self):
data = {
"meta": {
"media_version": "1.0.0",
"schema_version": 1,
"exported_at": datetime.now().isoformat(),
},
"objects": [],
Expand Down Expand Up @@ -117,6 +122,7 @@ def test_nested_objects_validation(self):
data = {
"meta": {
"media_version": "1.0.0",
"schema_version": 1,
"exported_at": datetime.now().isoformat(),
},
"objects": [
Expand Down

0 comments on commit ba9e249

Please sign in to comment.