mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
tests/integration/test_ethernet.py is a script capable of using the network module without executing it from Ansible and using Pytest. The example test sets an ip in a test interface. The changes in tox.ini adapt the testing to the new script. The __init__.py files were added to allow python2.7 compatibility. Signed-off-by: Elvira García Ruiz <elviragr@riseup.net>
8 lines
199 B
Python
8 lines
199 B
Python
# -*- coding: utf-8 -*
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption(
|
|
"--provider", action="store", default="nm", help="Network provider"
|
|
)
|