Salvador E. Tropea
86f21ff08c
Fixed path to makefile test.
2021-02-01 15:06:30 -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
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
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
Salvador E. Tropea
b271caf145
Added tests for no get_targets implementation and deps fallback.
2021-01-29 12:38:20 -03:00
Salvador E. Tropea
d9986b0599
Added PCBDraw case to the makefile test.
2021-01-29 12:22:31 -03:00
Salvador E. Tropea
55c988bb66
Added test for KiCad < 5.1.6
2021-01-29 12:15:46 -03:00
Salvador E. Tropea
e6163ae5aa
Added drill case to makefile test.
2021-01-29 11:54:09 -03:00
Salvador E. Tropea
4466277bde
Added KiBoM case to the makefile test.
2021-01-29 11:24:51 -03:00
Salvador E. Tropea
c64fb3871c
Added test for STEP file in makefile
2021-01-29 10:37:05 -03:00
Salvador E. Tropea
51aeb5be32
Added test for run_erc in makefile.
2021-01-29 09:27:02 -03:00
Salvador E. Tropea
6965d73c4e
Added test for ibom in makefile
2021-01-29 09:07:17 -03:00
Salvador E. Tropea
f29c0c5361
Added more test for compress output.
2021-01-29 08:46:23 -03:00
Salvador E. Tropea
89eedf1d3b
Disabled rar error message test.
2021-01-28 17:47:42 -03:00
Salvador E. Tropea
37eefac973
Added tests for some ouyt_compress special cases.
...
- No rar
- rar fails
- rar file exists
- Empty output
2021-01-28 17:33:01 -03:00
Salvador E. Tropea
84470bbc11
Added first makefile generation test
2021-01-28 12:43:01 -03:00
Salvador E. Tropea
ce387ac423
Added test for missing colorama module.
2021-01-27 12:55:19 -03:00
Salvador E. Tropea
86b1c13790
Now information messages go to stdout (not stderr).
...
Debug, warning and error messages still use stderr.
2021-01-22 17:17:41 -03:00
Salvador E. Tropea
263b9c41e4
Fixed log.init() errors when pcbnew/yaml modules aren't installed.
...
Also added tests for these cases.
2020-10-20 11:41:01 -03:00
Salvador E. Tropea
a62c3440e3
Disabled the cache related tests, no longer apply.
2020-10-17 14:30:23 -03:00
Salvador E. Tropea
2d55859782
Code style fixes (flake8)
2020-10-17 12:03:06 -03:00
Salvador E. Tropea
7a16f28d70
Adapted cache tests to mcpyrate.
...
Using `mcpyrate` we don't need to worry about cache files.
2020-10-17 11:31:16 -03:00
Salvador E. Tropea
c80fc49b54
Added infraestructure to support KiCad 6 tests.
2020-10-14 18:03:18 -03:00
Salvador E. Tropea
c8e81a4668
Added numbers to all the warnings
2020-10-09 18:33:51 -03:00
Salvador E. Tropea
4ea81d80a3
Added test for filter help.
2020-10-09 11:59:13 -03:00
Salvador E. Tropea
257b9fdd3f
Added tests for global and command line variant selection.
2020-09-12 08:24:47 -03:00
SET
1836e641e7
Added test to check we remove rogue cache files.
2020-08-19 11:42:12 -03:00
SET
422641a295
More robust behavior when the Python cache interferes.
...
Files using macros can't be cached. Now if we find caches for them we
try to delete the caches (pypi installation for example). If we can't
remove the files a warning is generated.
If we fail to load a plug-in an error explaining it is generated.
Also added a test to reproduce it.
2020-08-18 21:44:09 -03:00
SET
89914443f0
Renamed the kiplot module as kibot.
...
Also added src/kibot script.
Updated the documentation and Debian packaging.
The default extension for config files now is .kibot.yaml
2020-08-16 22:04:03 -03:00
Salvador E. Tropea
f824bee832
Added KiCad v5.x schematic support.
...
It provides extra information, like which files are part of the
Schematic.
Library components not yet implemented.
2020-07-27 22:01:12 -03:00
Salvador E. Tropea
52e6bb1b5f
Added support for PcbDraw
2020-07-11 13:49:03 -03:00
Salvador E. Tropea
f72ff3f441
Extra dot in step.metric_units docstring.
...
Remove dead code in check_eeschema_do()
Fixed the way we read scale stuff from a PCB
Added special checks for check_script and check_version
2020-07-09 12:50:27 -03:00
Salvador E. Tropea
587ef177b3
Added test for corrupted PCB, skip a preflight that isn't in use and output
...
plugin
2020-07-09 09:54:25 -03:00
Salvador E. Tropea
995b6990aa
Added HPGL and PS autoscaling tests.
...
Added test for example in a dir that must be created.
Removed code not used in docstring trim.
2020-07-08 23:16:04 -03:00
Salvador E. Tropea
8f17733354
Added PS autoscale and --example -p without PCB tests.
2020-07-08 22:55:41 -03:00
Salvador E. Tropea
4368364489
Refactored the BaseOutput class to make it more similar to the YAML
...
Now the options are just an attribute of the outputs.
It means we have a set of classes for the options.
All the output content is parsed by the classes, including the Layers.
Now the layers support a simple string (with interesting shortcuts), a list of
strings or the original list of dicts.
2020-07-08 15:17:24 -03:00
Salvador E. Tropea
ec35d2443f
Added option to copy plot options from the PCB to the YAML example.
...
Also added DXF.metric_units and updated the README.
2020-07-01 20:43:03 -03:00
Salvador E. Tropea
d926a5419e
Added --example basic tests
...
Also added support for output directory to --example
2020-06-30 20:43:42 -03:00
Salvador E. Tropea
3c6f4950c7
Now the schematic can be specified separately.
...
We now test if the PCB and/or SCH are there only when we need them.
2020-06-29 19:25:54 -03:00
Salvador E. Tropea
42d1f14056
Now layers are solved when we really need it.
...
So we can do some operations (like --list) without loading the board.
Also: now the names for the layers are asked to pcbnew classes (not from file)
2020-06-29 12:55:02 -03:00
Salvador E. Tropea
d48f258c33
Added tests for the various help options.
2020-06-26 14:48:40 -03:00
Salvador E. Tropea
2f0f3f755d
Changed the command line parser from argparse to docopt.
...
This make the code cleaner and better documented.
Now the usage is more clear, and also a little bit more strict.
I'm using a modified docopt because I preffer using args.option instead of
args['--option'], I also fixed a few flake8 issues in docopt.py.
2020-06-26 12:04:56 -03:00
Salvador E. Tropea
6ed99d8515
Tests adapted to the new error message strings.
2020-06-19 16:00:16 -03:00
Salvador E. Tropea
c2a735e9a6
For some reason Python sys.path vector has a limit and I was abusing it.
...
Each test module setups the path to find the needed modules, but didn't check
if it was necesary. Creating a long path that finally started to fail.
2020-06-15 15:14:53 -03:00
Salvador E. Tropea
7b8aa57610
Added missing blank line and removed extra blank line at the end.
2020-05-26 14:01:11 -03:00
Salvador E. Tropea
21bc1f939e
Added test for missing PCB file in command line
2020-05-26 12:23:43 -03:00
Salvador E. Tropea
b429a81473
Added test for --list option
2020-05-26 12:12:18 -03:00
Salvador E. Tropea
92de025c96
Added test for wrong config file name
2020-05-26 12:05:35 -03:00
Salvador E. Tropea
c41faba302
Added tests for guessing the board and YAML, also missing YAML
2020-05-26 12:02:16 -03:00
Salvador E. Tropea
b5448739ee
Added a test for missing PCB file
2020-05-25 20:28:35 -03:00
Salvador E. Tropea
0ed23a1642
Added a test to skip one output
2020-05-25 20:12:42 -03:00
Salvador E. Tropea
cc4d942111
Added a test for a bogus output type.
2020-05-25 20:00:59 -03:00
Salvador E. Tropea
5a23fe2b37
Added tests for various cases of --skip command line option.
2020-05-25 19:49:05 -03:00