Skip to content

Commit

Permalink
Fixed create test, removed extra metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Nov 23, 2023
1 parent ecfc546 commit b7eedb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion oarepo_ui/resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def empty_record(self, resource_requestctx, **kwargs):
record = deepmerge.always_merger.merge(
record, copy.deepcopy(self.config.empty_record)
)
record["metadata"] = {}
self.run_components(
"empty_record", resource_requestctx=resource_requestctx, record=record
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ui_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def test_ui_resource_create_new(app, record_ui_resource, record_service):
assert record_ui_resource.empty_record(None) == {"metadata": {}, "title": None}
assert record_ui_resource.empty_record(None) == {"title": ''}


def test_ui_resource_form_config(app, record_ui_resource):
Expand Down

0 comments on commit b7eedb8

Please sign in to comment.