Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Testing: Rename tests so we run everything via pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mawildoer committed Sep 11, 2024
1 parent 7e89dd8 commit eeffd12
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
File renamed without changes.
6 changes: 5 additions & 1 deletion test/libs/picker/test_jlcpcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ def tearDown(self):
JLCPCB_DB.get().close()


@unittest.skipIf(not JLCPCB_DB.config.db_path.exists(), reason="Requires large db")
def is_db_available():
return JLCPCB_DB.config.db_path.exists()


@unittest.skipIf(not is_db_available(), reason="Requires large db")
class TestPickerPerformanceJLCPCB(unittest.TestCase):
def test_simple_full(self):
# conclusions
Expand Down
8 changes: 5 additions & 3 deletions test/libs/lcsc.py → test/libs/test_lcsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def test_model_translations(self):
lcsc.EXPORT_NON_EXISTING_MODELS = True

for part, expected in test_parts.items():
ki_footprint, ki_model, ee_footprint, ee_model = lcsc.download_easyeda_info(
part,
get_model=INTERACTIVE_TESTING,
ki_footprint, ki_model, ee_footprint, ee_model, ee_symbol = (
lcsc.download_easyeda_info(
part,
get_model=INTERACTIVE_TESTING,
)
)

translation = ki_footprint.output.model_3d.translation
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit eeffd12

Please sign in to comment.