Diego Capusotto
e70172c83f
Skipped `test_int_bom_missing_lib` test for v6
...
- Schematics are self-cointained now, there is no point in checking
libs
2021-12-17 15:44:53 -03:00
Diego Capusotto
2c936b8c64
KiCad v6: added kibom-variante test case
2021-12-17 13:48:14 -03:00
Diego Capusotto
5cf60b0361
Fixed config tests
...
- The initialization in out_base forced the need of logger reset
2021-12-17 13:34:15 -03:00
Diego Capusotto
927ed3c99e
Fixed flake8 details
2021-12-17 12:55:33 -03:00
Diego Capusotto
14e0a90dce
KiCad v6: test_gerber.py adpted to the new layer names
2021-12-17 12:45:44 -03:00
Diego Capusotto
e733ce1289
KiCad v6: Adapted kibom-variant_3 test to the new format.
2021-12-17 12:18:00 -03:00
Diego Capusotto
01090aa64a
KiCad v6: Updated 3Rs.kicad_pcb
2021-12-17 12:10:32 -03:00
Diego Capusotto
1e9ed89f75
KiCad v6: Updated bom.kicad_sch and bom.xml
2021-12-17 11:47:11 -03:00
Diego Capusotto
c3b987eb6f
Adjusted tests to the l1.dcm addition
2021-12-17 10:30:13 -03:00
Diego Capusotto
95ddda0953
Made the v5 schematic loader more robust
...
- Allow DMC files with wrongly encoded chars
- Allow libs with wrong justify+italic+bold fields
- Both from https://github.com/Digi-Key/digikey-kicad-library
Closes #122
2021-12-17 10:03:12 -03:00
Diego Capusotto
25d036f8fa
Added some preliminary support for v6 SCHs
...
- Currently just loads the files
- No save implemented
- Seems to be enough to generate some trivial BoMs
2021-12-16 17:08:33 -03:00
Diego Capusotto
3eb82bc86d
Changed: The `%d/%sd/%bd` expansion patterns are now affected by the global `date_format`.
...
- Can be disabled using `date_reformat: false`.
- Related to #121
2021-12-15 17:15:49 -03:00
Diego Capusotto
4f5b4c0619
Adapted the test_filter_not_list to the new error message
...
- Now we don't use a plural for one option.
2021-12-15 11:17:45 -03:00
Diego Capusotto
318f0993bf
Now `disable_run_by_default` can be defined as true
...
- To avoid repeating the name of the parent output
- Related to #121
2021-12-14 20:44:37 -03:00
Diego Capusotto
71c7150baa
Added support for \n and \t to text* options of join
...
Related to #108
2021-12-14 17:45:10 -03:00
Diego Capusotto
9be560e78d
Now the text* options of join must include any separator
...
- Removed the space when used
- Related to #108
2021-12-14 16:49:46 -03:00
Diego Capusotto
e2599731f7
Added `output_id` output option to be expanded by %I
2021-12-14 16:19:49 -03:00
Salvador E. Tropea
a82f130ad9
Now you can compress files relative to the current working directory.
...
Related to #93
2021-12-03 19:30:11 -03:00
Salvador E. Tropea
50783087a1
Fixed wrong variable in test assert
2021-12-03 17:52:16 -03:00
Salvador E. Tropea
6a691cf362
Added pre-flight to replace in the PCB
...
- Also added some constrains to what can be substituted to avoid
corrupting the files.
2021-12-03 16:52:04 -03:00
Salvador E. Tropea
f9239349af
Added title block to the light control test case
2021-12-03 15:53:31 -03:00
Salvador E. Tropea
f3ea2e8024
Adapted test cases to the new sheet detection and example change
2021-12-03 15:50:32 -03:00
Salvador E. Tropea
6e0a98e6d2
Removed unused import
2021-12-03 15:29:01 -03:00
Salvador E. Tropea
9cd2581582
Added new pre-flight command to replace tags in the schematic.
...
Related to #93 , but also an old idea floating around.
2021-12-03 14:37:53 -03:00
Salvador E. Tropea
9fffeddaff
Added a text replace tag to test_v5.sch
2021-12-03 12:28:45 -03:00
Salvador E. Tropea
9e4adf5286
Added patterns to expand the title blck comments.
...
Related to #93
2021-12-03 10:13:42 -03:00
Salvador E. Tropea
70fb334856
A mechanism to avoid running some outputs by default.
...
Related to #112
2021-12-02 18:47:40 -03:00
Salvador E. Tropea
a430916a4a
Now you get an error when defining two outputs with the same name.
2021-12-02 14:58:37 -03:00
Salvador E. Tropea
b9cb24c325
Now you get an error when defining two outputs with the same name.
2021-12-02 13:21:57 -03:00
Salvador E. Tropea
6392124f9f
Added import for globals.
2021-12-02 10:33:19 -03:00
Salvador E. Tropea
5291af250c
Adapted the pre-flight test to the new output format.
2021-12-01 19:45:11 -03:00
Salvador E. Tropea
995219a8ea
Added option to add text to the `join` in the internal BoM
...
Related to #104
2021-12-01 18:07:41 -03:00
Salvador E. Tropea
130f7b25a3
Fixed tests that now needs to initialize global defaults.
2021-12-01 15:55:38 -03:00
Salvador E. Tropea
49ea1bb62a
Internal BoM: `count_smd_tht` option to compute SMD/THT stats.
...
Closes #113
2021-11-22 14:34:07 -03:00
Salvador E. Tropea
1bb8a56209
Added a small test for the render_3d output.
...
- I used it to reproduce the temporal project generation.
2021-11-18 13:55:08 -03:00
Salvador E. Tropea
b4c1531e10
PCB PDF Print: mechanism to change the block title.
...
- Related to #102
- Also added %V to expand the variant name
- Documented %v and %V
2021-11-17 10:51:28 -03:00
Salvador E. Tropea
f2195d9409
Adapted the PCB print scaling
...
- The references were generated using buggy KiAuto
2021-11-16 10:34:16 -03:00
Salvador E. Tropea
5620113b49
Fixed command line for `--list`
...
- PCB and SCH can be needed
- Adapted the test for --list
2021-11-15 13:38:35 -03:00
Salvador E. Tropea
088027c174
Fixed problems with schematic fields containing double quotes.
...
- Fixes #98
2021-11-15 12:50:22 -03:00
Salvador E. Tropea
4846a4672e
More adjusts to tests because new warning
2021-10-14 14:57:24 -03:00
Salvador E. Tropea
06f7efc2ec
Adjusted the tests for the new warning about missing 3D models
...
- Added filter for the tests where the number of warnings is important
2021-10-14 14:40:04 -03:00
Salvador E. Tropea
ab3bd7f0b3
Added a mechanism to import filters and variants.
...
- Also to restrict which outputs are imported.
- Fixes #88
2021-10-04 14:44:43 -03:00
Salvador E. Tropea
3f6105f6a8
Adapted the KiCost tests to the new grouping default.
2021-09-27 11:56:03 -03:00
Salvador E. Tropea
0f0e739026
Changed the default `group_fields` list.
...
Internal BoM: now components with different Tolerance, Voltage, Current
and/or Power fields aren't grouped together.
These fields are now part of the default `group_fields`. (#79 )
2021-09-27 11:31:51 -03:00
Salvador E. Tropea
a5221d7d45
Fixed test_rot_bottom test.
2021-09-27 09:17:24 -03:00
Salvador E. Tropea
a31002ed01
Fixes position files, now defaults to use the auxiliar origin as KiCad.
...
Can be disabled to use absolute coordinates.
Fixes #87
2021-09-27 08:35:58 -03:00
Salvador E. Tropea
ca599b03a5
Adapted the KiCost tests to the current KiCost code.
2021-06-03 12:28:28 -03:00
Salvador E. Tropea
f74cfb37ac
Fixed dates for the merge*.sch tests.
2021-05-25 20:47:05 -03:00
Salvador E. Tropea
3bdae8507a
Added suppport for multiprojects to the internal KiCost.
...
- Also changes the KitSpace queries format to be more readable.
2021-05-25 18:02:22 -03:00
Salvador E. Tropea
0dc8817bfb
Fixed KiCost test (because now KiCost works better)
2021-05-11 12:33:48 -03:00
Salvador E. Tropea
3255891ed0
Added comments to KiCost tests
2021-05-11 12:33:24 -03:00
Salvador E. Tropea
58ed8fb922
Added test to check we can select a distributor using its internal name
2021-05-11 12:13:04 -03:00
Salvador E. Tropea
7c23381adb
Added distributors selection to KiCost+KiBot
2021-04-28 12:13:12 -03:00
Salvador E. Tropea
f27dc68e4f
Refined what is filtered from the CSV comparisson in KiCost tests
2021-04-25 11:16:40 -03:00
Salvador E. Tropea
1878510a47
Adapted test_kicost_simple references.
2021-04-25 10:28:56 -03:00
Salvador E. Tropea
55277a550f
More KiCost integration in KiBoM.
...
- Also added level and comment to columns in the XLSX BoM output.
- Now user columns can be added to the KiCost sheet.
- The "Colors" sheet now includes KiCost colors
- The KiCost column names are more coherent with our names
- Style colors affects the KiCost colors
- About message includes KiBot version
- Header layout is also more coherent
- use_alt, number, max_col_width and ref_separator options are passed
to KiCost
2021-04-25 09:29:56 -03:00
Salvador E. Tropea
ae1e248e0b
Fixed test_v5 reference prints.
2021-04-22 17:23:04 -03:00
Salvador E. Tropea
e22e1db49a
Added support for width, style and color in "wire notes"
...
Fixes #70
2021-04-22 12:33:13 -03:00
Salvador E. Tropea
cfe61c9b7e
Added board view export.
...
Closes #69
2021-04-20 13:22:56 -03:00
Salvador E. Tropea
16ddb9465f
Added Internal BoM + KiCost integration
...
- Currently very basic, but you get "Costs" and "Costs (DNF)" work
sheets in the XLSX output when the xlsx.kicost option is enabled.
2021-04-15 11:14:37 -03:00
Salvador E. Tropea
2689ccbca2
Made the ibom output smarter about the netlist
...
- Now a warning is issued if needed and absent
- We now also pass it to iBoM if needed and is there
Fixes #68
2021-04-12 12:42:26 -03:00
Salvador E. Tropea
7961209b0f
Experimental mechanism to change 3D models according to the variant.
2021-03-31 18:00:43 -03:00
Salvador E. Tropea
7c3f273684
Basic KiCost support.
2021-03-31 12:27:55 -03:00
Salvador E. Tropea
1290bb6995
New KiCost variant style.
...
- New internal filters `_var_rename_kicost` and `_kicost_dnp`.
- New `skip_if_no_field` and `invert` options to the regex used in the
generic filter.
2021-03-30 09:37:36 -03:00
Salvador E. Tropea
afe80052b4
Added a new filter `var_rename_kicost`
...
Is very similar to `var_rename` with a few differences that makes it
suitable to emulate the KiCost field rename mechanism.
2021-03-25 12:57:26 -03:00
Salvador E. Tropea
01291ebe63
Added field rename filter.
...
Including an internal version to emulate KiCost behavior.
2021-03-23 13:20:26 -03:00
Salvador E. Tropea
40bd7c24f2
Added support for KiCost's subparts
2021-03-19 19:41:46 -03:00
Salvador E. Tropea
9478e42bb3
Documented #58 in the changelog and added a test case
2021-03-12 21:28:10 -03:00
Salvador E. Tropea
1b48e614a7
Added pattern expansion in the `dir` option for outputs
...
Closes #58
2021-03-12 21:14:39 -03:00
Salvador E. Tropea
eab8550c11
Fixed makefiles tests.
...
Introduced by 4f73de1157
2021-03-12 15:05:24 -03:00
Salvador E. Tropea
5560c62d14
Errors and warnings from KiAuto now are printed as is.
2021-02-24 12:58:47 -03:00
Salvador E. Tropea
8fba0d9909
Added `erc_warnings` option to consider ERC warnings as errors.
2021-02-24 12:34:49 -03:00
Salvador E. Tropea
57c517d02b
Passed the same verbosity level to KiAuto scripts.
2021-02-18 12:47:21 -03:00
Salvador E. Tropea
32310ba1fa
Added test for makefile generation running the script from system.
2021-02-12 14:56:51 -03:00
Salvador E. Tropea
400476f3fb
Added test for drill without map file.
2021-02-12 14:40:06 -03:00
Salvador E. Tropea
ab8d3b4823
Added test for layer without _id (str convertion)
2021-02-12 14:37:14 -03:00
Salvador E. Tropea
2891a3a713
Added test for aggregate without ref_id.
2021-02-12 14:31:53 -03:00
Salvador E. Tropea
6a5c082ab7
Added test for suffix with UTF-8
2021-02-12 14:31:24 -03:00
Salvador E. Tropea
85c5db268e
Added comments about caplog bugs in the pytest using for the docker image.
2021-02-12 14:30:35 -03:00
Salvador E. Tropea
c1499479dc
Removing part of test_search_as_plugin_ok
...
The caplog is failing on github docker image for this test.
2021-02-12 13:29:56 -03:00
Salvador E. Tropea
d5a1df9eb7
Modified test suite to collect the error in test_search_as_plugin_ok
2021-02-12 13:10:22 -03:00
Salvador E. Tropea
fb43de0e23
Added missing plu-in test file.
2021-02-12 12:31:51 -03:00
Salvador E. Tropea
61855a2d8c
Added tests for debug details in generated makefiles.
2021-02-12 12:30:20 -03:00
Salvador E. Tropea
a49d4e45fa
Added import tests.
2021-02-12 11:40:26 -03:00
Salvador E. Tropea
38420ba173
Made the time-out test to also try a non-zero wait_start.
2021-02-12 11:39:30 -03:00
Salvador E. Tropea
80b7510c80
Made the JLCPCB position example more clear and easier to reuse.
2021-02-12 11:08:09 -03:00
Salvador E. Tropea
1b6cd3fad5
Adapted the makefile test for the new behavior
2021-02-11 11:54:35 -03:00
Salvador E. Tropea
67cee9988a
Added workaroud for KiCad printing wxWidgets "traits" errors.
2021-02-10 09:40:41 -03:00
Salvador E. Tropea
f698e44642
Now we can load InteractiveHtmlBom even when installed only as plugin
...
Fixes #49
2021-02-08 15:37:01 -03:00
Salvador E. Tropea
e31539e4b1
Added missing test config file.
2021-02-08 15:36:22 -03:00
Salvador E. Tropea
ce0f22edce
Adjusted some details about the time-out control
...
- Warning when detected pointing to use the global options
- Now pcbnmew_do/eeschema_do output is captured
- Warning when using floating value for kiauto_wait_start (no fail)
- A simple test for time-out
Fixes #48
2021-02-08 12:07:54 -03:00
Salvador E. Tropea
f6dac6ef13
Problems using internal names for drill maps in gerb_drill output.
...
Fixes #47
2021-02-06 12:55:02 -03:00
Salvador E. Tropea
437f922341
Moved coverage calls, why out_step is wrongly reported?
2021-02-04 16:20:57 -03:00
Salvador E. Tropea
41c667cb1f
Added test for unknown prefix in units.
2021-02-04 16:17:34 -03:00
Salvador E. Tropea
047fe53e1d
Added tests for step and pdf_pcb_print command fails.
2021-02-04 16:09:50 -03:00
Salvador E. Tropea
0babc286af
Modified the tests to cover the missing lines.
2021-02-04 13:40:14 -03:00
Salvador E. Tropea
2e780bd860
Fixed flake8 errors.
2021-02-04 13:11:36 -03:00
Salvador E. Tropea
9f2344ed4a
Added tests for macros applied to stuff not currently used.
2021-02-04 13:06:44 -03:00
Salvador E. Tropea
685ab34c56
Added test for bogus argument passed to Layer.solve()
2021-02-04 12:00:17 -03:00
Salvador E. Tropea
fa7fe0a5d6
Added test for undocumented plug-in in example generation.
2021-02-04 11:45:53 -03:00