Adding pytest config / env and basic auth
This commit is contained in:
1 parent
e28a2ffb95
commit
27b97f2bc4
8 files changed
+60
-10
No files matched your search
@@ -1,7 +1,13 @@
|
||||
from boddle import boddle
|
||||
from groove import ondemand
|
||||
import os
|
||||
|
||||
|
||||
def test_ondemand_server():
|
||||
with boddle():
|
||||
assert ondemand.index() == 'Groovy.'
|
||||
|
||||
|
||||
def test_ondemand_auth():
|
||||
with boddle(auth=(os.environ.get('USERNAME'), os.environ.get('PASSWORD'))):
|
||||
assert ondemand.admin() == 'Authenticated. Groovy.'
|
||||
Reference in new issue
Block a user