Skip to content

Commit

Permalink
tests: use tmp_path_factory in fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Salman Maqbool <[email protected]>
  • Loading branch information
salmanmaq committed Oct 25, 2018
1 parent b527228 commit 7a78102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def fit(self, *args, **kwargs):
@patch(
'inspire_classifier.domain.models.RNN_Learner', Mock_RNN_Learner
)
def trained_pipeline(app, tmpdir_factory):
app.config['CLASSIFIER_BASE_PATH'] = str(tmpdir_factory)
def trained_pipeline(app, tmp_path_factory):
app.config['CLASSIFIER_BASE_PATH'] = tmp_path_factory
create_directories()
shutil.copy(Path(__file__).parent / 'fixtures' / 'inspire_test_data.df', path_for('dataframe'))
train()

0 comments on commit 7a78102

Please sign in to comment.