sturmianseq

Results 10 issues of sturmianseq

This PR aims to improve test reliability of test `test_api` by resetting `api.app.view_functions` to the initial state by calling method `clear` The test can fail in this way by running...

If adding `random.seed(0)` to the beginning of test `lithoxyl/tests/test_stats.py::test_momentacc_norm`, and running `pytest lithoxyl/tests/test_stats.py::test_momentacc_norm`, you will see this error message: ``` ____________________________________________________________________ test_momentacc_norm ____________________________________________________________________ def test_momentacc_norm(): random.seed(0) ma = MomentAccumulator() for...

This PR aims to improve test reliability of test `test_append_param` by removing state pollution in `init_ExpStock.__next__()` by making a deep copy. The test can fail in this way by running...

This PR aims to improve test reliability of test `test_result_item_missing_data` by removing state pollution of `data` by making a deepcopy. The test can fail in this way by running `pip3...

This PR aims to improve test reliability of test `test_suscribed_event_was_removed` by resetting `bus` to the initial state by calling `EventBus.add_event` The test can fail in this way by running `pip3...

This PR aims to improve test reliability of `test_event_emit` by resetting `GLOBAL_VAR` to the `Init` state. The test would fail in the following way if `GLOBAL_VAR` is not reset to...

# What is the purpose of the change This PR is to fix flaky tests `tests/test_model.py::TestMagicMethods::test_not_multiple_instance`, `tests/test_model.py::TestMagicMethods::test_validate_multiplicity` after running `tests/test_model.py::TestAutoIdentifiers::test_bad_autoid`, but pass when they are run in isolation. # Reproduce...

--- name: PR about: melhorando a confiabilidade do teste title: PR labels: enhancement assignees: '' --- #Numero_da_issue **Descrição do bug/feature:** Os testes falhariam ao executar o comando: ``` pip3 install...

## What is the purpose of the change This PR is to fix a flaky test `tests/test_api_client.py::TestApiClient::test_authentication_error`, which can fail after running `tests/test_api_client.py::TestApiClient::test_param_required_error`, but passes when it is run in...

This PR aims to improve test reliability by cleaning the state pollution in `TestMainView.test_warning`. `HEALTH_CHECK['WARNINGS_AS_ERRORS']` is set to `TRUE` by default, but `test_warning` changes it to be `FALSE`. The fix...