Skip to content

Ianhelle/tests and tidy 2021 09 01#200

Merged
ianhelle merged 13 commits intomainfrom
ianhelle/tests-and-tidy-2021-09-01
Sep 10, 2021
Merged

Ianhelle/tests and tidy 2021 09 01#200
ianhelle merged 13 commits intomainfrom
ianhelle/tests-and-tidy-2021-09-01

Conversation

@ianhelle
Copy link
Contributor

@ianhelle ianhelle commented Sep 2, 2021

Cleanup of unit tests.
Added a few more unit tests in some easy-to-cover situations.
A few fixes as a result of the better tests.

You prob only need to review the changes to the msticpy modules (vs. all of the tests)

Removing unneeded function from mordor_driver.py
Sourcery code refactor in entity.py
Deprecating create_ip_record function in ip_utils.py
Split wsconfig tests out of test_pkg_config.py
Adding test_wsconfig.py. Added new test for couple of utility methods
Removing redundant import from test_nbwidgets.py
…sted modules

Fixing up paths and removing unneeded imports and other cruft.
Merged a few tests into single files - test_entity.py and test_timeline.py
petebryan
petebryan previously approved these changes Sep 9, 2021
…er.py, test_azuredata.py, test_geoip.py,test_azuredatatest_process_tree_utils.py, test_user_config.py
@ianhelle ianhelle merged commit d81801d into main Sep 10, 2021
@ianhelle ianhelle deleted the ianhelle/tests-and-tidy-2021-09-01 branch September 10, 2021 00:54
juju4 pushed a commit to juju4/msticpy that referenced this pull request Jun 5, 2022
* Added separate unit test for nbwidgets to cover cases missed in notebook.

Couple of minor fixes for nbwidgets.py

* Removing deprecated code from utility.py

Removing unneeded function from mordor_driver.py
Sourcery code refactor in entity.py
Deprecating create_ip_record function in ip_utils.py
Split wsconfig tests out of test_pkg_config.py
Adding test_wsconfig.py. Added new test for couple of utility methods
Removing redundant import from test_nbwidgets.py

* Moved lots of test files into sub-package folders corresponding to tested modules

Fixing up paths and removing unneeded imports and other cruft.
Merged a few tests into single files - test_entity.py and test_timeline.py

* Re-enabling IP_stack/geoip notebook test in test_geoip.py

Updating use of tqdm to remove deprecated tqdm_notebook in utility.py

* Adding some debugging output to geoip GeoLite class.

Suppressing mypy warning in azure_ml_tools.py

* Updating test_geoip.py to use predictable msticpyconfig-test.yaml

* Adding debug statement to show config file and partial API key

* Typo in last push to geoip.py

* Another typo in the debug code in geoip.py

* Updating test to restore env var values after test in test_pkg_config.py

* More debugging for test_geoip.py

Fixing aliases element in kql query records
Handle aliases as list or string in help

* Fixing some merge errors and test failures in geoip.py, import_analyzer.py, test_azuredata.py, test_geoip.py,test_azuredatatest_process_tree_utils.py, test_user_config.py
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.

2 participants