You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete files uploaded to test server during unit testing (#735)
* Collecting and cleaning unit test dump
* Adding session level fixture with yield to delay deletion of files
* Adding PEP8 ignore F401
* Changelog update + pytest argument fix
* Messy first draft of possible designs
* Leaner implementation without additional imports
* Reordering flows to delete subflows later
* Updating with design changes for tracking files for deletion
* Handling edge cases
* Fixing unit test git status
* Fixing PEP8 issues
* FIxing type annotation
* Logging and leaner flow
* Fixing PEP8 and unit test errors
* Fixing test cases; Renaming function
* Fixing clustering task unit test
* Updating docs for unit test deletion
- Add [unit tests](https://github.com/openml/openml-python/tree/develop/tests) and [examples](https://github.com/openml/openml-python/tree/develop/examples) for any new functionality being introduced.
86
+
- If an unit test contains an upload to the test server, please ensure that it is followed by a file collection for deletion, to prevent the test server from bulking up. For example, `TestBase._mark_entity_for_removal('data', dataset.dataset_id)`, `TestBase._mark_entity_for_removal('flow', (flow.flow_id, flow.name))`.
87
+
- Please ensure that the example is run on the test server by beginning with the call to `openml.config.start_using_configuration_for_example()`.
84
88
85
89
- All tests pass when running `pytest`. On
86
90
Unix-like systems, check with (from the toplevel source folder):
0 commit comments