Skip to content

Clearer print statements #5

@viktor-rick

Description

@viktor-rick

Is your feature request related to a problem? Please describe.
A beginner engineer might have too much info on the viktor-cli test result. Ideally we'd clearly show what is going wrong and why.

Describe the solution you'd like
old:

...
Falsifying example: test_view_handles_input_gracefully(
    self=<test_views.TestViewBehavior testMethod=test_view_handles_input_gracefully>,
    params=Munch({'input': Munch({'nodes': [], 'supports': [], 'point_loads': [], 'distributed_loads': [], 'profile_type': 'IPE', 'steel_class': 'S235', 'include_weight': False})}),  # or any other generated value
...
We've found a configuration that will show an error for your end-users:
    method="generate_calculation",
    params={
          'input': {
                 'nodes': [],
                 'supports': [],
                 'point_loads': [], 
                 'distributed_loads': [], 
                 'profile_type': 'IPE', 
                 'steel_class': 'S235',
                 'include_weight': False
                }
           )}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions