Commit Graph

4 Commits

Author SHA1 Message Date
Ben Greear
06fbba1aad pytest: Clean up some tools vs pytest breakage in that last commit.
Seems you cannot have two __init__ methods in a class, so change
code to only one one variant.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 16:18:07 -08:00
Ben Greear
98b0078336 pytest: Make cmd-line args match what the stand-alone tools were using.
And create cmd-line-args based on pytest input so we can pass it into
the library guts.
2021-02-11 15:44:50 -08:00
Ben Greear
55d9e99978 pytest: Start integrating with existing libraries.
This is going to take more work, but getting somewhat closer.

Stop using pytest/helpers, they are replaced by libraries.

Existing libraries are often taking a command-line-args option
as easy way to pass something to various methods.  This will
have to be resolved to work with the way pytest wants to
run.

Much hard-coding needs to be removed, and specifically,
the 'set profile' logic is completley  not working.

Need to use library logic that can query the eq-id based
on name (and query eq-name based on serial port/ssh, perhaps).

Need to resolve how cmd-line can take multiple APs, but
each will have different eq-id.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 13:18:38 -08:00
shivam
4c1cc92add Basic Code Refactoring and Setup for Unit Tests 2021-02-08 23:24:47 +05:30