Skip to content

Commit

Permalink
[Fixes #12124] GNIP 100: Assets - minor test "in" fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed May 7, 2024
1 parent e7c8519 commit c1028fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/base/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2344,8 +2344,8 @@ def test_resource_service_copy_with_perms_dataset_set_default_perms(self):
self.assertEqual("finished", self.client.get(response.json().get("status_url")).json().get("status"))
_resource = Dataset.objects.filter(title__icontains="test_copy_with_perms").last()
self.assertIsNotNone(_resource)
self.assertFalse("bobby" in "bobby" in [x.username for x in _resource.get_all_level_info().get("users", [])])
self.assertTrue("admin" in "admin" in [x.username for x in _resource.get_all_level_info().get("users", [])])
self.assertNotIn("bobby", [x.username for x in _resource.get_all_level_info().get("users", [])])
self.assertIn("admin", [x.username for x in _resource.get_all_level_info().get("users", [])])

def test_resource_service_copy_with_perms_doc(self):
files = os.path.join(gisdata.GOOD_DATA, "vector/single_point.shp")
Expand Down

0 comments on commit c1028fb

Please sign in to comment.