Skip to content

Commit

Permalink
[Fixres GeoNode#8690] port to master
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 4, 2022
1 parent 1ba8793 commit 336b207
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geonode/geoapps/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def setUp(self):
owner=self.user
)
self.sut = GeoAppForm

def test_resource_form_is_invalid_extra_metadata_not_json_format(self):
self.client.login(username="admin", password="admin")
url = reverse("geoapp_metadata", args=(self.geoapp.id,))
Expand Down
1 change: 1 addition & 0 deletions geonode/layers/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,7 @@ def test_give_single_file_should_return_False(self):
actual = is_sld_upload_only(request)
self.assertFalse(actual)


class TestDatasetForm(GeoNodeBaseTestSupport):
def setUp(self) -> None:
self.user = get_user_model().objects.get(username='admin')
Expand Down
1 change: 0 additions & 1 deletion geonode/layers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ def dataset_metadata(
instance=layer,
notify=True,
extra_metadata=json.loads(dataset_form.cleaned_data['extra_metadata'])

)
return HttpResponse(json.dumps({'message': message}))

Expand Down

0 comments on commit 336b207

Please sign in to comment.