Skip to content

Commit 76ca9ee

Browse files
conftest: Add NODE_PACKAGE as non-fixture
To be used e.g. in test setup.py
1 parent 7427d1c commit 76ca9ee

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

test/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
import nodely
66

77

8+
NODE_PACKAGE = 'coffee-script'
9+
10+
811
@pytest.fixture
912
def node_package():
10-
return 'coffee-script'
13+
return NODE_PACKAGE
1114

1215

1316
@pytest.fixture

test/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
'root': '..',
2727
'local_scheme': lambda _: '',
2828
},
29-
require_node_modules=[conftest.node_package()],
29+
require_node_modules=[conftest.NODE_PACKAGE],
3030
)

0 commit comments

Comments
 (0)