INNER CODE UNIT · Python

WOTestApp

WordOps/WordOps · wo/cli/main.py:74

class WOTestApp(WOApp):
    """A test app that is better suited for testing."""
    class Meta:
        # default argv to empty (don't use sys.argv)
        argv = []

        # don't look for config files (could break tests)
        config_files = []

        # don't call sys.exit() when app.close() is called in tests
        exit_on_close = False


# Define the applicaiton object outside of main, as some libraries might wish
# to import it as a global (rather than passing it into another class/func)
app = WOApp()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…