Skip to content

Commit

Permalink
skips test_start_web_controller unless TEST_TBD
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom O'Hara committed Nov 5, 2023
1 parent 5bc525f commit fd9ccc9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mezcla/tests/test_text_categorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
system.setenv("USE_XGB", "1")
import mezcla.text_categorizer as THE_MODULE

## TODO:
## # Environment options
## # Note: These are just intended for internal options, not for end users.
## # It also allows for enabling options in one place.
## #
## FUBAR = system.getenv_bool("FUBAR", False,
## description="Fouled Up Beyond All Recognition processing")
# Environment options
TEST_TBD = system.getenv_bool("TEST_TBD", False,
description="Test features to be designed: TBD")


class TestTextCategorizerUtils(TestWrapper):
Expand Down Expand Up @@ -87,9 +83,11 @@ def test_format_index_html(self):
debug.trace(4, "test_format_index_html()")
assert(False)

@pytest.mark.skipif(not TEST_TBD, reason="Ignoring feature to be designed")
@pytest.mark.xfail # TODO: remove xfail
def test_start_web_controller(self):
"""Ensure start_web_controller works as expected"""
# Note: pytest has a quirk leading to a logging exception during cherrypy cleanup
debug.trace(4, "test_start_web_controller()")
TODO_MODEL = "todo.model"
wc = THE_MODULE.start_web_controller(TODO_MODEL, nonblocking=True)
Expand Down

0 comments on commit fd9ccc9

Please sign in to comment.