Skip to content

Standardize handling of default parameters in two sample tests #15

@morales-gregorio

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

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