Skip to content

Commit

Permalink
conftest: Add NODE_PACKAGE as non-fixture
Browse files Browse the repository at this point in the history
To be used e.g. in test setup.py
  • Loading branch information
userzimmermann committed Jul 26, 2019
1 parent 7427d1c commit 76ca9ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
import nodely


NODE_PACKAGE = 'coffee-script'


@pytest.fixture
def node_package():
return 'coffee-script'
return NODE_PACKAGE


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion test/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
'root': '..',
'local_scheme': lambda _: '',
},
require_node_modules=[conftest.node_package()],
require_node_modules=[conftest.NODE_PACKAGE],
)

0 comments on commit 76ca9ee

Please sign in to comment.