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

unit tests can run #194

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Conversation

rkoumis
Copy link
Collaborator

@rkoumis rkoumis commented Nov 11, 2024

Run unit tests #182

  • small refactoring inside dalton.py and flowsynth.py
  • initialize logging at init time not import time
  • check for rulesets at init time not import time
  • added some basic tests

- small refactoring inside dalton.py and flowsynth.py
- initialize logging at init time not import time
- check for rulesets at init time not import time
- added some basic tests
# register modules
#
# dalton
daltonfs.register_blueprint(dalton_blueprint)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This code to create the app was copied from run.py... then tweaked a little so that we could run the tests.

Only when not running the tests, do we need to call the new functions

  • setup_*_logging ; and
  • ensure_rulesets_exist()

... since otherwise, that code was run at import time.

@rkoumis rkoumis self-assigned this Nov 11, 2024
@rkoumis rkoumis merged commit d780e3d into secureworks:pilot Nov 11, 2024
2 checks passed
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.

1 participant