Fixes to get example running. Start adding test.
This commit is contained in:
parent
4843413883
commit
bda8084172
9 changed files with 47 additions and 16 deletions
1
test/requirements.txt
Normal file
1
test/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
pytest
|
11
test/test_machine_setup.py
Normal file
11
test/test_machine_setup.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from machine_admin.util import set_is_dry_run
|
||||
from machine_admin.user import User
|
||||
from machine_admin.machine import Machine
|
||||
|
||||
set_is_dry_run(True)
|
||||
|
||||
def test_machine_setup():
|
||||
|
||||
user = User("test_user", has_sudo=True)
|
||||
machine = Machine(user)
|
||||
machine.setup()
|
Loading…
Add table
Add a link
Reference in a new issue