facebookresearch / recipes

Recipes are a standard, well supported set of blueprints for machine learning engineers to rapidly train models using the latest research techniques without significant engineering overhead.Specifically, recipes aims to provide- Consistent access to pre-trained SOTA models ready for production- Reference implementations for SOTA research reproducibility, and infrastructure to guarantee correctness, efficiency, and interoperability.
BSD 3-Clause "New" or "Revised" License
284 stars 35 forks source link

[easy] fix pytest error related to test name conflict #13

Closed hudeven closed 2 years ago

hudeven commented 2 years ago

to reproduce the error, run pytest at "recipes/torchrecipes" and will get error like:

import file mismatch: imported module 'test_train_app' has this file attribute: /Users/stevenliu/workspace/torchrecipes/recipes/torchrecipes/audio/source_separation/tests/test_train_app.py which is not the same as the test file we want to collect: /Users/stevenliu/workspace/torchrecipes/recipes/torchrecipes/vision/image_classification/tests/test_train_app.py

Adding __init__.py fixed the issue

facebook-github-bot commented 2 years ago

@hudeven has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 2 years ago

@hudeven has updated the pull request. You must reimport the pull request before landing.