astrodbtoolkit / astrodb-template-db

A template for astronomical databases.
https://astrodb-template-db.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Expand tests #2

Closed kelle closed 5 months ago

kelle commented 1 year ago

Even though it's early still, I think it's time to start making some tests!

kelle commented 10 months ago

The integrity tests from SIMPLE could be a good inspiration: https://github.com/SIMPLE-AstroDB/SIMPLE-db/blob/main/tests/test_integrity.py#L392

arjunsavel commented 10 months ago

Thinking about: every table should have a test.

Every table should have 1-2 entries. There will be things to test.

Try to avoid duplicating tests that are already enforced in the schema?

Do coordinates make sense?

Duplication? Unused-edness? Missingness? Validity?

Every source needs a name?

Empty strings?

Query simbad — aliases?

Magnitudes make sense?

For columns with "adopted" — only one adopted?

kelle commented 7 months ago
arjunsavel commented 6 months ago

Now testing that strings are validated (#32)!

arjunsavel commented 5 months ago

Split this up into multiple issues (#46, #47, #48, #49, #50, #51, #52, #53, #54)