Skip to content

Commit

Permalink
[Pep8] Fix pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jan 21, 2022
1 parent 024e445 commit 8ec2503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions geonode/geoserver/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ def _add_sld_boilerplate(symbolizer):
}

STYLES_VERSION = {
"1.0.0" : "sld10",
"1.1.0" : "sld11"
"1.0.0": "sld10",
"1.1.0": "sld11"
}


def _extract_style_version_from_sld(sld):
"""
Assume: SLD as a byte
Expand All @@ -208,7 +209,6 @@ def _extract_style_version_from_sld(sld):
return STYLES_VERSION["1.0.0"]



def _style_name(resource):
return _punc.sub("_", f"{resource.store.workspace.name}:{resource.name}")

Expand Down
2 changes: 1 addition & 1 deletion geonode/upload/tests/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def test_final_step_for_csv_file(self):
self.assertIn(expected_url, data.get('redirect_to', ''))

# - Before final step assert that status is WAITING
upload_file_url = "/api/v2/uploads/?filter{import_id}=" + str(upload_id)
upload_file_url = f"/api/v2/uploads/?filter{{import_id}}={str(upload_id)}"
resp = self.client.make_request(upload_file_url, force_login=True)
data = resp.json()
self.assertEqual(resp.status_code, 200)
Expand Down

0 comments on commit 8ec2503

Please sign in to comment.