Skip to content

Standardize handling of default parameters in two sample tests #15

Description

@morales-gregorio

I noticed that the test classes in tests/test_covariance_test.py and tests/test_power_spectrum_test.py differ quite a bit.

tests/test_power_spectrum_test.py uses a private method to set the default parameters. However, @rgutzen pointed out this could be done in the init function of the tow_sample_test abstract class. The default params would then be defined as a dictionary in the child classes, which would be very flexible and easy to understand for developers writing new tests.

Best,
Aitor

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions