Skip to content

Commit a1ce2a4

Browse files
committed
Update test_plugin.py
1 parent f98560c commit a1ce2a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tests/test_plugin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ def test_settings():
3535
def 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

4141
def 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

4848
def 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

0 commit comments

Comments
 (0)