Skip to content

Commit 14fc6ab

Browse files
committed
node: Mark some tests as integration
1 parent 42c6fcd commit 14fc6ab

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/node.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ jobs:
6262

6363
- name: Run checks
6464
run: poetry run poe check
65+
66+
- name: Run integration tests
67+
run: poetry run poe check-integration

node/pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@ strict = true
6969
check-format = "ruff format --check flatpak_node_generator tests"
7070
check-lint = "ruff check flatpak_node_generator tests"
7171
check-mypy = "mypy ."
72-
check-test = "pytest -vvvs -n auto"
72+
check-test = "pytest -vvvs -n auto -m 'not integration'"
73+
check-integration = "pytest -vvvs -m integration"
7374
check = ["check-format", "check-lint", "check-mypy", "check-test"]
7475
apply-format = "ruff format flatpak_node_generator tests"
7576
apply-lint = "ruff check --fix flatpak_node_generator tests"
7677

7778
[tool.pytest.ini_options]
7879
asyncio_mode = "auto"
7980
testpaths = ["tests"]
81+
markers = [
82+
"integration: tests requiring flatpak runtimes or SDK extensions"
83+
]
84+
addopts = "-m 'not integration'"
8085

8186
[build-system]
8287
requires = ["poetry-core>=1.0.0"]

node/tests/test_manifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
import urllib.parse
55
from pathlib import Path
66

7+
import pytest
78
from conftest import FlatpakBuilder, RequestsController
89

910
from flatpak_node_generator.integrity import Integrity
1011
from flatpak_node_generator.manifest import ManifestGenerator
1112

13+
pytestmark = pytest.mark.integration
14+
1215

1316
def test_url(requests: RequestsController, flatpak_builder: FlatpakBuilder) -> None:
1417
DATA_1 = 'abc'

node/tests/test_providers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from flatpak_node_generator.manifest import ManifestGenerator
99

10+
pytestmark = pytest.mark.integration
11+
1012
TEST_SCRIPT = """
1113
require("array-range");
1214
require("is-empty-object");

0 commit comments

Comments
 (0)