Skip to content

Commit

Permalink
Test top-level package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Nov 9, 2019
1 parent f6ba2e7 commit 941f2b6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions tests/integration/test_exports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
"""
radish
~~~~~~
The root from red to green. BDD tooling for Python.
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""


def test_correct_exports_on_package_level():
# THEN, can import top-level exports
from radish import ( # noqa
# Step Decorators
given,
when,
then,
step,

# Hooks & Terrain
world,
before,
after,

# Step Pattern Types
custom_type,
register_custom_type,
TypeBuilder,

# The radish parser
FeatureFileParser,

# Models
Feature,
Rule,
DefaultRule,
Background,
Scenario,
ScenarioOutline,
ScenarioLoop,
Step,
Tag,
PreconditionTag,
ConstantTag,

# Exception Types
RadishError,

# The radish-bdd package version
__version__
)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ setenv =
extras = {env:TOX_AP_TEST_EXTRAS:tests}
commands =
coverage run -p -m radish -b tests/integration/radish tests/integration/features {posargs}
coverage run -p -m pytest tests/integration


[testenv:coverage-report]
Expand Down

0 comments on commit 941f2b6

Please sign in to comment.