Skip to content

Commit

Permalink
Fix rest method comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed Sep 18, 2023
1 parent 63c5284 commit 11f8a5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_publication(self, map, rest_method, rest_args, params):
assert_util.is_publication_valid_and_complete(map)

exp = params['exp_after_rest_method']
http_method = REQUEST_METHOD_PATCH if rest_method == self.patch_publication else REQUEST_METHOD_POST # pylint: disable=W0143
http_method = REQUEST_METHOD_PATCH if rest_method.enum_item == base_test_classes.RestMethodAll.PATCH else REQUEST_METHOD_POST
self.assert_exp_map_layers(map, exp['map_layers'], exp['operates_on'], http_method=http_method,
actor_name=rest_args.get('actor_name'))
self.assert_exp_layer_maps(LAYER_HRANICE, [
Expand Down

0 comments on commit 11f8a5c

Please sign in to comment.