25 lines
793 B
Gherkin
25 lines
793 B
Gherkin
Feature: Module Entry Points
|
|
|
|
Scenario: Run main module
|
|
When I execute the __main__ module
|
|
Then the CLI should start
|
|
|
|
Scenario: Import main module
|
|
When I import the __main__ module
|
|
Then it should have a run function
|
|
|
|
Scenario: Platform module imports CLI
|
|
When I call ensure_cli_importable
|
|
Then it should return the CLI module
|
|
And the module should have a cli attribute
|
|
And the module should have a main attribute
|
|
|
|
Scenario: Platform handles already imported module
|
|
When the CLI module is already imported
|
|
And I call ensure_cli_importable
|
|
Then it should return the cached module
|
|
|
|
Scenario: Platform handles import errors
|
|
When the CLI module import fails
|
|
And I call ensure_cli_importable
|
|
Then it should propagate the import error |