File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments