Skip to content

Commit f843df7

Browse files
committed
Fix PEP8 spacing issues and lint the code
1 parent 6923280 commit f843df7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/django_mermaid/templatetags/mermaid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def startmermaid(parser, token):
5555
else:
5656
theme = None
5757

58-
nodelist = parser.parse(('endmermaid',))
58+
nodelist = parser.parse(("endmermaid",))
5959
parser.delete_first_token()
6060

6161
return MermaidNode(nodelist, theme)

tests/test_package.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313

1414
site_packages = sysconfig.get_paths()["purelib"]
1515

16+
1617
@override_settings(MERMAID_USE_CDN=False)
17-
@patch('django_mermaid.apps.download_if_necessary')
18+
@patch("django_mermaid.apps.download_if_necessary")
1819
def test_download_called_when_use_cdn_false(mock_download):
1920
# Re-run the AppConfig.ready() method manually
20-
app_config = apps.get_app_config('django_mermaid')
21+
app_config = apps.get_app_config("django_mermaid")
2122
app_config.ready()
2223

2324
mock_download.assert_called_once()
2425

2526

2627
@override_settings(MERMAID_USE_CDN=True)
27-
@patch('django_mermaid.apps.download_if_necessary')
28+
@patch("django_mermaid.apps.download_if_necessary")
2829
def test_download_not_called_when_use_cdn_true(mock_download):
29-
app_config = apps.get_app_config('django_mermaid')
30+
app_config = apps.get_app_config("django_mermaid")
3031
app_config.ready()
3132

3233
mock_download.assert_not_called()

tests/test_tag.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,3 @@ def test_tag_use_custom_theme_variables_with_base_theme(version, template_code):
120120
"<script>mermaid.initialize({\"startOnLoad\": true, \"theme\": \"base\", \"themeVariables\": "
121121
"{\"primaryColor\": \"#efefef\"}});</script>" % version
122122
)
123-
124-

0 commit comments

Comments
 (0)