Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasNelson1990 committed Jul 21, 2023
1 parent 71595be commit 1645701
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ckanext/validation/tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,12 @@ def test_run_non_auth_user(self):

user = factories.User()
org = factories.Organization()
# resource = factories.Resource()
dataset = factories.Dataset(
owner_org=org["id"], resources=[factories.Resource()]
owner_org=org["id"]
)
resource = factories.Resource(package_id=dataset['id'])
print(dataset)

context = {"user": user["name"], "model": model}

Expand All @@ -357,7 +360,7 @@ def test_run_non_auth_user(self):
call_auth,
"resource_validation_run",
context=context,
resource_id=dataset["resources"][0]["id"],
resource_id=resource["id"],
)

def test_run_auth_user(self):
Expand Down

0 comments on commit 1645701

Please sign in to comment.