-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imports incorrect for some tests #68
Comments
Same with |
Ah right, the imports would be more consistent if So regarding the test fixtures, yeah, some of them have lived in coralnet S3 buckets while some of them have lived in the Git repo's I was about to go with Right now, I'm thinking the way forward might be consolidating and/or simplifying the test fixtures so that they still have the necessary characteristics we want to test, but are smaller in filesize / file count. Then those test fixtures ideally all get housed in the Git repo without Git LFS. Then, if we at the coralnet team still want to archive additional historically tricky images for our records, we can keep those in our own private bucket. |
Hey Stephen,
I think the import needs to reference spacer for the decorator to be :
Yeah, I've struggled with LFS in the past. Are we able to use the If more fixtures are needed maybe those are on S3 and pulled down ? ( I'm not even sure what fixtures are used for at this point so I may be missing context!). |
Ah, I was thinking this for the imports: from spacer.train_utils import make_random_data, train
from .decorators import require_test_fixtures
from .utils import cn_beta_fixture_location I have this habit from coralnet where, if I'm in a subdirectory and importing from another file in that same subdirectory, I use the relative-import syntax (like Some test files are in |
Imports are not consistent with file directory and return
pyspacer/spacer/tests/test_tasks.py
Lines 28 to 30 in 510e9a6
There are also references to coralnet's S3 buckets for this test :
https://github.com/coralnet/pyspacer/blob/510e9a655a824d2bea8ee49f7545070274ad2032/spacer/tests/utils.py#L11C1-L17C1
I think these should be using the local filesystem and the
/tests/fixtures
directory instead ?The text was updated successfully, but these errors were encountered: