File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ def test_settings():
35
35
def test_run_dir (tmp_path , monkeypatch ):
36
36
monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
37
37
plugin = Plugin ()
38
- assert plugin .plugin_run_dir () == tmp_path
38
+ assert plugin .run_dir == tmp_path
39
39
40
40
41
41
def test_root_dir (tmp_path , monkeypatch ):
42
42
monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
43
43
monkeypatch .setattr ('pyflowlauncher.plugin.Path.exists' , lambda _ : True )
44
44
plugin = Plugin ()
45
- assert plugin .plugin_root_dir () == tmp_path
45
+ assert plugin .root_dir () == tmp_path
46
46
47
47
48
48
def test_root_dir_not_found (tmp_path , monkeypatch ):
49
49
monkeypatch .setattr ('sys.argv' , [tmp_path / 'plugin.py' ])
50
50
monkeypatch .setattr ('pyflowlauncher.plugin.Path.exists' , lambda _ : False )
51
51
plugin = Plugin ()
52
52
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