Christian Boltz
2a37040415
Introduce AATest.parseInvalidRule()
...
... and change all *TestParseInvalid classes to use it, instead of
having (nearly) the same function in every test-*.py.
While at it, enable the tests for abi and include rules.
2025-06-29 17:35:48 +02:00
Georgia Garcia
cec9ae6dff
utils: fix coding style to match PEP8
...
Annotate exceptions with ' # noqa: ERROR'
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
2024-05-20 13:56:37 -03:00
Mark Grassi
844a4dc393
Change string formatting method in Python tests
2023-02-19 16:54:38 -05:00
Mark Grassi
852169948f
Make BaseRule a proper abstract base class
2022-11-13 19:32:01 -05:00
Mark Grassi
accc2debe9
Rename BaseRule's parse() method to create_instance()
2022-09-10 19:54:35 -04:00
Mark Grassi
c57138f255
Order imports and module-level dunder name assignments.
2022-08-21 11:15:07 -04:00
Mark Grassi
96f7121944
Fix most PEP 8 whitespace, indentation, and major line length violations.
2022-08-21 11:15:07 -04:00
Mark Grassi
7581c9e113
Speed up list creations, and change lists to tuples where appropriate..
2022-06-26 22:18:56 -04:00
Christian Boltz
86edd48487
Increase include and abi rule test coverage to 100%
...
... by adding some tests.
2021-04-15 00:24:38 +02:00
Christian Boltz
4c77f7193b
Use parse() instead of _parse() in LogprofHeaderTest
...
The *LogprofHeaderTest accidently used the private _parse() insteaf of
the official parse().
2021-03-07 18:28:27 +01:00
Christian Boltz
50d896705f
Add AbiRule and testsuite
...
This is probably the shortest rule class we'll ever have because it can
inherit most things from IncludeRule.
2020-05-09 21:02:06 +02:00