Skip to content
Snippets Groups Projects
Commit 11757618 authored by Taya Snijder's avatar Taya Snijder
Browse files

changed way to get enviroment variable

parent be0c4610
No related branches found
No related tags found
1 merge request!457Resolve L2SS-825 "Start an observation"
...@@ -6,6 +6,7 @@ from tangostationcontrol.integration_test import base ...@@ -6,6 +6,7 @@ from tangostationcontrol.integration_test import base
from tangostationcontrol.devices.observation_control import observation_wrapper from tangostationcontrol.devices.observation_control import observation_wrapper
from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy
import numpy import numpy
from os import environ
from json import loads from json import loads
...@@ -25,7 +26,7 @@ class TestObservation(base.IntegrationTestCase): ...@@ -25,7 +26,7 @@ class TestObservation(base.IntegrationTestCase):
specification_dict = loads(TestObservationBase.VALID_JSON) specification_dict = loads(TestObservationBase.VALID_JSON)
# create an observation class using the dict and as host just get it using a util function # create an observation class using the dict and as host just get it using a util function
observation = observation_wrapper(specification=specification_dict, host=ApiUtil.get_env_var("TANGO_HOST")) observation = observation_wrapper(specification=specification_dict, host=environ["TANGO_HOST"])
# Assert the observation is running after starting it # Assert the observation is running after starting it
observation.start() observation.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment