Salvador E. Tropea
dd28c63089
Added test for undocumented preflight.
2021-02-04 11:27:57 -03:00
Salvador E. Tropea
e413cf0214
Added test for plug-in class without docstring.
2021-02-04 11:14:27 -03:00
Salvador E. Tropea
03a5a6d295
Fixed exception when a plug-in class doesn't have a docstring.
2021-02-04 11:13:40 -03:00
Salvador E. Tropea
ba6787660c
Added test for undocumented option.
2021-02-04 10:42:02 -03:00
Salvador E. Tropea
9807bcb13f
Fixed exception on undocumented options.
2021-02-04 10:40:42 -03:00
Salvador E. Tropea
cc19d12d60
Added test for KiCad config redirection.
2021-02-04 10:28:39 -03:00
Salvador E. Tropea
f39024d23d
Added test for plug-in that fails to generate its targets.
2021-02-04 10:06:48 -03:00
Salvador E. Tropea
d97ca18590
Added test for rotation filter in the bottom side.
2021-02-03 17:13:12 -03:00
Salvador E. Tropea
2d4f73d822
Fixed interaction between tests testing eeschema_do version
2021-02-03 16:07:36 -03:00
Salvador E. Tropea
2a93f97abd
Removed no longer needed import
2021-02-03 16:07:12 -03:00
Salvador E. Tropea
afaecfe570
Added tests for run_e/drc fails (mocked)
2021-02-03 15:16:42 -03:00
Salvador E. Tropea
9a703186de
Removed useless test in out_step.
...
The undo_3d_models can't be empty when calling undo_3d_models_rename.
In the worst case won't do any damage doing the loop.
2021-02-03 12:54:05 -03:00
Salvador E. Tropea
48b1eafafc
Added test for debug stats in BoM output.
2021-02-03 12:49:57 -03:00
Salvador E. Tropea
323dad144c
Added test for no sch loaded in KiBoM output.
2021-02-03 12:47:07 -03:00
Salvador E. Tropea
d1ef2c8cbf
Added style dependency in pcbdraw makefile target.
...
- Also now we make sure the style is an existent file.
2021-02-03 12:41:30 -03:00
Salvador E. Tropea
80df7d76c7
Added tests to fully cover config_reader.
...
- Output comment as None
- Empty output name
- Empty variant type
2021-02-03 12:31:39 -03:00
Salvador E. Tropea
d12837d5ba
Added tests for missing out_bom cases.
...
- No file in aggregate
- Missing file in aggregate
- Sch not loaded
2021-02-03 12:16:55 -03:00
Salvador E. Tropea
602f0dd261
Added a STEP test using a model that is inside our tree.
...
Ensures all models will be found.
2021-02-03 11:26:37 -03:00
Salvador E. Tropea
0b3891d942
Added tests for bogus 3D model and another shipped.
2021-02-03 11:12:24 -03:00
Salvador E. Tropea
56e5352164
Added test for var_rename filter without variant.
2021-02-03 10:40:12 -03:00
Salvador E. Tropea
370b5bdaf6
Added test for run_drc to the makefile test.
...
- Also test the schematic fallback for preflight deps.
2021-02-03 10:23:15 -03:00
Salvador E. Tropea
1ad91dbbd8
Excluded KiCad 6 code from coverage in gerber output.
2021-02-03 10:14:42 -03:00
Salvador E. Tropea
265bdac7c2
Added test for update_xml in makefile test.
2021-02-02 12:31:34 -03:00
Salvador E. Tropea
d8d0868784
Added test case for empty separator in var_rename filter.
2021-02-02 12:21:55 -03:00
Salvador E. Tropea
2bbbebf43a
Added test for schematic with company name in merged BoM tests.
2021-02-02 12:13:33 -03:00
Salvador E. Tropea
79fe05ed9f
Added makefile test for sch_variant case.
...
- Also avoided to repeat the same SCH dependency more than once.
2021-02-02 11:55:36 -03:00
Salvador E. Tropea
56fa06ef15
Added test for missing id in position columns.
...
Also excluded KiCad 6 code from out_position.
2021-02-02 11:17:09 -03:00
Salvador E. Tropea
ec273da57b
Removed dead code in log.py.
2021-02-02 10:56:46 -03:00
Salvador E. Tropea
82f5aa9a0b
Added makefile tests for schematic print (PDF and SVG)
2021-02-02 10:36:19 -03:00
Salvador E. Tropea
9943b82807
Removed KiCad 6 code from coverage.
2021-02-01 17:24:31 -03:00
Salvador E. Tropea
d5a31c6d87
Added tests for the missing lines in out_ibom.py.
2021-02-01 17:12:40 -03:00
Salvador E. Tropea
10f0706482
Exclude KiCad 6 code and enabled coverage for out_base tests.
2021-02-01 16:39:10 -03:00
Salvador E. Tropea
f7826a7667
Added tests to cover missing lines in out_pdf_pcb_print.py
2021-02-01 15:51:04 -03:00
Salvador E. Tropea
c67965c91b
Excluded KiCad 6 code in main from coverage.
2021-02-01 15:26:08 -03:00
Salvador E. Tropea
86f21ff08c
Fixed path to makefile test.
2021-02-01 15:06:30 -03:00
Salvador E. Tropea
8b459e85d5
Moved the plug-ins load to the coverage section in the tests.
...
So we get the re-load protection covered in the reports.
2021-02-01 14:54:13 -03:00
Salvador E. Tropea
e3766519ac
Added test for the warning about filenames with $.
2021-02-01 14:53:38 -03:00
Salvador E. Tropea
76db8a65e4
Removed KiCad 6 code from coverage.
2021-02-01 14:52:52 -03:00
Salvador E. Tropea
003fa15715
Support for mcpyrate macros deactivation.
2021-02-01 14:51:42 -03:00
Salvador E. Tropea
248ce56d35
Merge pull request #46 from INTI-CMNB/pytest6
...
Pytest 6 support
2021-02-01 11:49:21 -03:00
Salvador E. Tropea
755ec4aa76
Fixed test_yaml_errors, wasn't adapted to the new fixture.
2021-02-01 11:35:48 -03:00
Salvador E. Tropea
01131bfc64
Fixed flake8 issues (indentation and obsolete request)
2021-02-01 11:28:11 -03:00
Salvador E. Tropea
7413f12924
Added missing test file `tests/test_plot/fake_plugin/out_bogus.py`
2021-02-01 11:23:41 -03:00
Salvador E. Tropea
3d5547f6c6
Changed the way we get the target test directory.
...
- Pytest 6 removed the old global mechanism.
- Now using a `fixture`
2021-02-01 11:16:33 -03:00
Salvador E. Tropea
af29f802c0
Switched from configfile.readfp to configfile.read_file for Python 3
2021-02-01 11:14:57 -03:00
Salvador E. Tropea
7bf0f90134
Updated mcpyrate.
...
The old one didn't work with Pytest 6.0.2.
2021-02-01 11:13:52 -03:00
Salvador E. Tropea
7422e9726c
Removed some "no cover" comments, clasified the rest
2021-02-01 08:53:24 -03:00
Salvador E. Tropea
8492786dcc
Trying to get better coverage report.
2021-01-29 15:50:53 -03:00
Salvador E. Tropea
b53ffbb032
Added Python cache creation before running the tests.
...
It looks like pytest is loading some modules without macros. The cache
gets created without them. But when we load the same modules with
macros it fails.
2021-01-29 15:27:52 -03:00
Salvador E. Tropea
d796abde2e
Separated some complex tests from the test_misc.
...
- Moved them test_misc_2
- Refined the tests in test_misc_2 to work together
2021-01-29 13:28:29 -03:00