Skip to content

Commit 3992a96

Browse files
committed
fix pylint command and update save_to_file path
1 parent 7da3749 commit 3992a96

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: poetry install --with dev
2626
- name: Lint with Pylint
27-
run: poetry run pylint scholarvista cli
27+
run: poetry run pylint scholarvista
2828
test:
2929
runs-on: ubuntu-latest
3030

tests/test_keyword_cloud.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ def test_save_to_file(self):
4343
with patch("matplotlib.pyplot.savefig") as mock_savefig, \
4444
patch("matplotlib.pyplot.close") as mock_close:
4545
self.keyword_cloud.word_cloud = "mock_word_cloud"
46-
self.keyword_cloud.save_to_file("/path/to/directory")
46+
self.keyword_cloud.save_to_file(
47+
f"/path/to/directory/{self.keyword_cloud.title}")
4748
mock_savefig.assert_called_once_with(
48-
"/path/to/directory/Test Cloud.png")
49+
"/path/to/directory/Test Cloud/keyword_cloud.png")
4950
mock_close.assert_called_once()
5051

5152
def test_save_to_file_no_word_cloud(self):

0 commit comments

Comments
 (0)