Salvador E. Tropea
b03b56ae5d
Added more coherence to the variants/filters.
...
- Now they behave more coherently across outputs.
- Component status is explicitly reset, so having a variant + filter
behaves in a more consistent way. Even when this isn't the
recommended use.
- Virtual components are handled by the exclude filter.
- Moved code to modify the PCB to VariantOptions.
- Added a real virtual component to the tests, not a ridiculous case.
2020-09-08 20:01:16 -03:00
Salvador E. Tropea
23e46df1c5
Added variants support to the PCB print (PDF)
...
Needs some adjustement, but is working.
2020-09-07 19:26:16 -03:00
Salvador E. Tropea
0e394b468b
Added variants support to the schematic SVG print.
2020-09-06 18:22:38 -03:00
Salvador E. Tropea
59ddbaa41f
Adjusted the tests for IBoM's variants support.
...
- Removed the extra filters that aren't needed now.
- Added a couple of test cases to cover special situations.
2020-09-05 19:31:29 -03:00
Salvador E. Tropea
d719718eca
Moved KiBoM default behavior to the KiBoM variant.
...
So it can be applied to other outputs.
2020-09-05 18:58:26 -03:00
Salvador E. Tropea
7e5791fcfa
Added variants to the IBoM output.
2020-09-05 17:48:25 -03:00
Salvador E. Tropea
a59870808d
Made the image comparisson more fuzzy.
2020-09-04 18:51:05 -03:00
Salvador E. Tropea
d09400d49d
Added support for variants to the PcbDraw output.
2020-09-04 18:08:22 -03:00
Salvador E. Tropea
dab7baa2d4
Fixed show_components validation in out_pcbdraw.
...
The same error could be in other places.
I had to change the internal logic in Optionable.
The old code allowed invalid values to be used.
2020-09-04 18:06:17 -03:00
Salvador E. Tropea
cf46a8ba86
Added variants support to the STEP output.
...
3D Models of excluded components are removed.
2020-09-03 18:50:30 -03:00
Salvador E. Tropea
b36e276969
Added crosses in the *.Fab layer for excluded components.
2020-09-03 17:17:08 -03:00
Salvador E. Tropea
8bf0a13210
Remove filtered components from the *.Adhes layer.
...
All shapes in the *.Adhes are removed.
2020-09-03 12:29:04 -03:00
Salvador E. Tropea
c56af11007
Added variants to all the PCB plot outputs.
...
Tested for gerbers that are currently excluding pads from *.Paste.
2020-09-03 11:11:03 -03:00
Salvador E. Tropea
26ee971e26
Added variants suport to out_position
...
Also: we never include virtual components.
2020-09-02 18:08:50 -03:00
Salvador E. Tropea
5e11b325a1
Added test for multiple calls to KiConf.init()
...
Now that the code avoids calling it over and over.
2020-09-02 18:08:26 -03:00
Salvador E. Tropea
9558f7cf45
Added test for rogue component in PCB.
2020-09-02 15:16:23 -03:00
Salvador E. Tropea
42562185ea
Added filter options using PCB attributes.
...
KiCad 6 will break this, we'll see how to adapt.
2020-09-02 14:48:26 -03:00
Salvador E. Tropea
220e2f252e
Added tests for various schematic strange cases.
...
- Component withour lib
- Missing component
- Poligon without points
- Pin with unknown direction
2020-09-02 10:04:32 -03:00
Salvador E. Tropea
ff6282eca1
Added test for the new errors in DrawText elements.
2020-09-01 20:39:15 -03:00
Salvador E. Tropea
e0de652105
Added more tests for the filters and variants.
2020-09-01 18:49:38 -03:00
Salvador E. Tropea
7f6144e32e
Added tests for sch_variant and pdf_print_sch
...
For the filter and variant stuff.
2020-09-01 16:56:31 -03:00
Salvador E. Tropea
d5fe46ab8e
Updated error text in the test.
2020-08-31 20:48:11 -03:00
Salvador E. Tropea
48be2fa749
Merge pull request #5 from INTI-CMNB/variants
...
Added Variants and Filters
2020-08-30 12:10:29 -03:00
Salvador E. Tropea
0f0aa71baa
Added more tests for the filters and variants
2020-08-30 11:55:35 -03:00
Salvador E. Tropea
c0a1867dd5
Added support for filters to the internal BoM generator.
...
- Now we can configure more details, like the DNC.
- We can also mix KiBoM and IBoM strategies.
- Adapted the test examples that used filtering.
2020-08-29 17:41:57 -03:00
Salvador E. Tropea
249caad348
Implemented the IBoM variants styles.
...
The core functionality is now tested in the internal BoM.
The IBoM output needs adjust to allow using the variants with it.
2020-08-28 20:12:21 -03:00
Salvador E. Tropea
df013b57dc
Fixed flake8 details
2020-08-28 16:57:31 -03:00
Salvador E. Tropea
0bdce78004
Implemented the new variants mechanism in the internal BoM.
2020-08-28 16:49:20 -03:00
Salvador E. Tropea
7c11370afd
Added tests for missing convert and/or rsvg-convert
2020-08-27 19:18:08 -03:00
Salvador E. Tropea
45fde666be
Added test for the warning about extra spaces in fields.
2020-08-27 18:04:22 -03:00
Salvador E. Tropea
3023035b75
Added tests for PcbDraw JPG and PNG outputs
2020-08-25 13:47:49 -03:00
Salvador E. Tropea
140a45fdc6
Fixed variants BoM logic.
...
The variants logic for BoMs when a component resquested to be only
added to more than one variant.
This is related to SchrodingersGat/KiBoM#136 issue.
2020-08-24 10:53:56 -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
SET
15dbf9cce3
Added test for the new SVG output
2020-08-16 17:32:40 -03:00
SET
a2b25ce23e
Added a comment about the test strategy in the config errors.
2020-08-15 20:33:30 -03:00
SET
991f070e9f
Added variants test.
2020-08-15 20:33:09 -03:00
SET
1a83f34de4
Added tests for fails and variants in the library path guess
...
Also switched all to pytest.monkeypatch to make it uniform.
2020-08-15 19:30:04 -03:00
SET
3cb7022902
Modified where I catch KiConfError
...
So coverage has a chance to record it
2020-08-15 18:34:21 -03:00
SET
a35f7a0d10
Switched to mock to patch the environment
2020-08-15 18:11:54 -03:00
SET
d2a443d52d
Fixed where we catch KiConfError during test
2020-08-15 17:56:48 -03:00
SET
c0c3302645
Added tests for broken sym-lib-table.
2020-08-15 17:37:50 -03:00
SET
0908a6b599
Added more tests for KiCad config.
...
No HOME environment variable, guess lib path, determine lib path
from env.
2020-08-15 16:13:10 -03:00
SET
e29c7b2a93
Fixed tests adding to sys.path unconditionally
2020-08-15 15:25:02 -03:00
SET
400d5e436d
Fixed the KiCad config error tests.
...
They modified the environment and didn't undo the changes.
2020-08-15 15:24:18 -03:00
SET
d277bbbc0b
Added test for no KiConf instances and loading config from env
...
Also moved the KiCad config tests to a separated file.
2020-08-15 13:41:29 -03:00
SET
487021357b
Added tests for errors in the sym-lib-table
2020-08-15 12:42:07 -03:00
SET
9681064093
Fixed flake8 details
2020-08-15 11:06:45 -03:00
SET
90dee902ed
Added tests for various strange cases that shouldn't interfere
...
Partial annotations, deeper hierarchy, etc.
2020-08-15 10:25:18 -03:00