File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ def test_settings():
3535def test_run_dir (tmp_path , monkeypatch ):
3636 monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
3737 plugin = Plugin ()
38- assert plugin .plugin_run_dir () == tmp_path
38+ assert plugin .run_dir == tmp_path
3939
4040
4141def test_root_dir (tmp_path , monkeypatch ):
4242 monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
4343 monkeypatch .setattr ('pyflowlauncher.plugin.Path.exists' , lambda _ : True )
4444 plugin = Plugin ()
45- assert plugin .plugin_root_dir () == tmp_path
45+ assert plugin .root_dir () == tmp_path
4646
4747
4848def test_root_dir_not_found (tmp_path , monkeypatch ):
4949 monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
5050 monkeypatch .setattr ('pyflowlauncher.plugin.Path.exists' , lambda _ : False )
5151 plugin = Plugin ()
5252 with pytest .raises (FileNotFoundError ):
53- assert plugin .plugin_root_dir () == tmp_path
53+ assert plugin .root_dir () == tmp_path
You can’t perform that action at this time.
0 commit comments