2022-11-19 15:14:12 -08:00
|
|
|
from boddle import boddle
|
|
|
|
from groove import ondemand
|
2022-11-19 16:06:23 -08:00
|
|
|
import os
|
2022-11-19 15:14:12 -08:00
|
|
|
|
|
|
|
|
|
|
|
def test_ondemand_server():
|
|
|
|
with boddle():
|
|
|
|
assert ondemand.index() == 'Groovy.'
|
2022-11-19 16:06:23 -08:00
|
|
|
|
|
|
|
|
|
|
|
def test_ondemand_auth():
|
|
|
|
with boddle(auth=(os.environ.get('USERNAME'), os.environ.get('PASSWORD'))):
|
|
|
|
assert ondemand.admin() == 'Authenticated. Groovy.'
|