Skip to content

Commit 218314f

Browse files
committed
fixed: tests in AppEcosystem repo
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 2a057b0 commit 218314f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/ui_file_actions_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
if NC_APP is None or "app_ecosystem_v2" not in NC_APP.capabilities:
1818
pytest.skip("app_ecosystem_v2 is not installed.", allow_module_level=True)
1919

20-
if not environ["NC_AUTH_USER"] and not environ["NC_AUTH_PASS"]:
21-
pytest.skip("needs username & password for tests.", allow_module_level=True)
22-
2320

2421
@pytest.mark.skipif(environ.get("CI", None) is not None, reason="do not work on GitHub")
22+
@pytest.mark.skipif(
23+
not environ.get("NC_AUTH_USER", None) or not environ.get("NC_AUTH_PASS", None),
24+
reason="needs username & password for tests.",
25+
)
2526
def test_register_ui_file_actions():
2627
im = BytesIO()
2728
Image.linear_gradient("L").resize((768, 768)).save(im, format="PNG")

0 commit comments

Comments
 (0)