Skip to content
Snippets Groups Projects
Commit 3b21041b authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Formatting

parent 6d45df53
No related branches found
No related tags found
1 merge request!104Propagate extra fields form group into WorkSpecifications
......@@ -184,15 +184,11 @@ class GroupUpdatePropagation(dtest.TestCase):
)
def test_filter_propagation(self, _):
self.client.force_login(self.user)
for filter_name, filter_value in [("project", "Kerbal Space Program 3"), ("activity", "Warp9"), ("location", "Mars"), ("dataproduct_type", "SpuriousCommunication")]:
data = {
"name": "Example",
"processing_site": self.site.name,
"selected_workflow_tag": self.group.selected_workflow_tag,
"selected_workflow": self.group.selected_workflow,
"action": "Create",
}
data[filter_name] = filter_value
for filter_name, filter_value in [("project", "Kerbal Space Program 3"), ("activity", "Warp9"),
("location", "Mars"), ("dataproduct_type", "SpuriousCommunication")]:
data = {"name": "Example", "processing_site": self.site.name,
"selected_workflow_tag": self.group.selected_workflow_tag,
"selected_workflow": self.group.selected_workflow, "action": "Create", filter_name: filter_value}
res = self.client.post(
reverse("group-update", kwargs={"pk": self.group.pk}), data=data
)
......@@ -208,4 +204,4 @@ class GroupUpdatePropagation(dtest.TestCase):
self.assertEqual(
ws.filters.get(filter_name), filter_value, f"{filter_name} filter is not updated"
)
# TODO: check if the define_specification is ran for this WS
\ No newline at end of file
# TODO: check if the define_specification is ran for this WS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment