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

Testing: Rename tests so we run everything via pytest #58

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.