Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

79 assert nodes 1 #102

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

79 assert nodes 1 #102

wants to merge 13 commits into from

Conversation

haakon98
Copy link
Collaborator

@haakon98 haakon98 commented Nov 5, 2024

  • Create a file node_checker.py for validation logic of assert nodes
  • Implement logic in test_runner/views.py

Haakon Karstensen and others added 10 commits November 5, 2024 18:58
* Add API for running test flows
* crud actions for category

* refactor mapping from backend model to frontend type

* Enhance device category management: add ID to DeviceCategory type, update input handling in forms, and implement Django filters for device queries.

* move delete button

* Remove unnecessary console logs from device category components and views

* add patch device category

* add fetching the number of devices associated with a category

* style connection type and communication protocol tags on device category page

* format code

* style fix and format backend code

* format backend code

* style: align contents of device category card

* very tiny style fix

* revert file name change

* refactor fetch devices based on category id

* sort imports

* remove comments and add communication protocols to create request

* format code
* remove unnecessary status icon

* lint
@haakon98 haakon98 linked an issue Nov 5, 2024 that may be closed by this pull request
Copy link
Collaborator

@adelefelicia adelefelicia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run the flow with test_runner I get this error back as a result
image

result = "Assert OK"
else:
result = "Assert failed"
except Exception as e:
Copy link
Collaborator

@adelefelicia adelefelicia Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think you can omit this try/catch block since the whole function is wrapped in one. We'd like those errors to be sent to the user in case they write invalid python code instead of just catching them and continuing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assert nodes
4 participants