Skip to content

Commit

Permalink
Make delete and patch tests optional
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed Oct 6, 2023
1 parent 2fe9c5c commit b3ba410
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

TEST_CASES = {
'post': {
'test_type': EnumTestTypes.MANDATORY,
'post_before_test_args': {},
'exp_before_rest_method': {
'map_layers': None,
Expand All @@ -48,6 +49,7 @@
},
},
'delete': {
'test_type': EnumTestTypes.OPTIONAL,
'post_before_test_args': {
'file_paths': [os.path.join(DIRECTORY, 'internal_wms_and_wfs.json')],
},
Expand All @@ -69,6 +71,7 @@
},
},
'patch_map_with_unauthorized_layer': {
'test_type': EnumTestTypes.OPTIONAL,
'post_before_test_args': {
'file_paths': [os.path.join(DIRECTORY, 'internal_hranice_private.json')],
},
Expand All @@ -89,6 +92,7 @@
},
},
'patch_map_with_different_layers': {
'test_type': EnumTestTypes.OPTIONAL,
'post_before_test_args': {
'file_paths': [os.path.join(DIRECTORY, 'internal_wms_and_wfs.json')],
},
Expand Down Expand Up @@ -131,7 +135,7 @@ class TestPublication(base_test.TestSingleRestPublication):
rest_args=params['rest_args'],
rest_method=params['rest_method'],
post_before_test_args=params['post_before_test_args'],
type=EnumTestTypes.MANDATORY,
type=params['test_type'],
) for key, params in TEST_CASES.items()]

def before_class(self):
Expand Down

0 comments on commit b3ba410

Please sign in to comment.