Skip to content

Commit

Permalink
apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed May 9, 2023
1 parent d1d1620 commit 1a5ff6a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion test/setup_joplin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
def download_joplin(destination: str) -> None:
"""Download the latest joplin desktop app release if not already done."""
if not os.path.exists(destination):

# obtain the version string
# response = requests.get(
# "https://api.github.com/repos/laurent22/joplin/releases"
Expand Down
6 changes: 0 additions & 6 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ def get_example_code(self, example_name: str) -> str:
return matches.groups()[0]

def test_get_all_notes(self):

note_count = 3
self.api.add_notebook()
for _ in range(note_count):
Expand All @@ -856,7 +855,6 @@ def test_get_all_notes(self):
self.assertEqual(len(locals_dict["notes"]), note_count)

def test_add_tag_to_note(self):

code = self.get_example_code("add_tag_to_note")
exec(code)

Expand All @@ -868,7 +866,6 @@ def test_add_tag_to_note(self):
self.assertEqual(len(notes), 1)

def test_add_resource_to_note(self):

code = self.get_example_code("add_resource_to_note")
code = code.replace("path/to/image.png", "test/grant_authorization_button.png")
exec(code)
Expand All @@ -886,7 +883,6 @@ def test_add_resource_to_note(self):
self.assertEqual(len(resources), 1)

def test_remove_tags(self):

self.api.add_tag(title="Title")
self.api.add_tag(title="! Another Title")
self.api.add_tag(title="!_third_title")
Expand All @@ -900,7 +896,6 @@ def test_remove_tags(self):
self.assertEqual(tags[0].title, "title") # tags are always lower case

def test_remove_spaces_from_tags(self):

self.api.add_tag(title="tag with spaces")
self.api.add_tag(title="another tag with spaces")

Expand All @@ -915,7 +910,6 @@ def test_remove_spaces_from_tags(self):

@with_resource
def test_remove_orphaned_resources(self, filename):

self.api.add_notebook()
for i in range(2):
note_id = self.api.add_note()
Expand Down

0 comments on commit 1a5ff6a

Please sign in to comment.