Skip to content

Conversation

@simonreise
Copy link
Contributor

Currently Landsat tests work, but tests code is extremely complicated and almost unreadable. So, it is hard to add new tests

I tried to fully refactor Landsat tests to switch to class-based approach

Most of the functionality is now moved to base Landsat tests class BaseLandsatTest, it includes creating file fixtures and most of the tests.

Also, there are classes that include level-specific and sensor-specific tests and fixtures. These classes not only add the specific functionality, but also override the methods that exist in base class, but are not needed for this specific product (e.g. MSS test class override thermal_band fixture that is not needed here, but needed in all the other classes)

The actual test classes are the classes that inherit from base class and specific classes. They include mostly setting the data variables that are unique for each test

This class-based approach will not only make tests more readable, but also will make it much easier to add new tests

This PR also fixes the error mentioned in #3300 and adds a specific test for MSS sensors that test wavelengths of a B4 band and one other band

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.

1 participant