bytinbit

Results 20 issues of bytinbit

I have been using nerd-dictation for a while and it's fantastic - open-source, adaptable, hackable, Python, Linux-friendly :) Thanks! But there's a strange thing happening: English input works without any...

If I want to group my tests using regular [pytest test classes](https://docs.pytest.org/en/6.2.x/getting-started.html#group-multiple-tests-in-a-class), testbook is unable to execute and fails. It might be because the `self` argument of the test class...

Test classes are defined in yaml bundles like this: ```yaml - test_class: TestNapalmBgpNeighbors test_data: - host: R1 peer: 1.2.3.4 is_up: false ``` From a usability standpoint it would be good...

refactor

`napalm_ping.py` (and iperf too) needs to access a context's `test_data` from within the Extractor, which is not nice: `test_data: List[Dict[str, Any]] = self._nuts_ctx.nuts_parameters["test_data"]`. Find a solution to pass the entry...

refactor

We patch attributes onto existing objects at two locations in the code: * `napalm_ping.py`: we add a `destination` field to every Nornir-Result. * `result.py`: we add an `exception` field to...

refactor

Add the possiblity to specify a single data entry which will be inherited by entry of "test_data". Data in the entry has higher precendence than data from the inherited entry.

refactor

Nuts uses a lot of pytest internals (namely pytest's Python API) to generate tests (`yamlloader.py`: `NutsTestFile`). This works, but abuses a lot of internal functionalities of pytest and makes the...

refactor

Write a validator that can validate the format of test bundles, so that user know if they have an error in their yaml files. Selection of validators: - [Pydantic](https://pydantic-docs.helpmanual.io/) bigger,...

enhancement

[JSONSchema for Python](https://github.com/Julian/jsonschema) Allows users to validate their yaml files / test bundles if their structure is correct. Alternative: [Pydantic (big)](https://pydantic-docs.helpmanual.io/), [Cerberus (small and lightweight)](https://docs.python-cerberus.org/en/stable/)

The only context currently implemented is the NutsContext, but NUTS is designed to allow tests to be executed in different contexts. Pyats by Cisco might be worth to be implemented...

enhancement