Fix the path to the test files
@@ -48,7 +48,7 @@ def test_no_visualization_no_preferable_options():
@responses.activate
def test_no_visualization_preferable_options():
- with open(os.path.join(os.path.dirname(__file__), 'resources/tradeoff-expect3.txt')) as expect_file:
+ with open(os.path.join(os.path.dirname(__file__), '../resources/tradeoff-expect3.txt')) as expect_file:
dilemmas_response = expect_file.read()
responses.add(responses.POST, dilemmas_url,
@@ -58,7 +58,7 @@ def test_no_visualization_preferable_options():
tradeoff_analytics = watson_developer_cloud.TradeoffAnalyticsV1(
username="username", password="password")
- with open(os.path.join(os.path.dirname(__file__), 'resources/problem.json')) as data_file:
+ with open(os.path.join(os.path.dirname(__file__), '../resources/problem.json')) as data_file:
tradeoff_analytics.dilemmas(
json.load(data_file),
generate_visualization=False,
@@ -71,7 +71,7 @@ def test_no_visualization_preferable_options():
@responses.activate
def test_visualization_preferable_options():
- with open(os.path.join(os.path.dirname(__file__), 'resources/tradeoff-expect4.txt')) as expect_file:
+ with open(os.path.join(os.path.dirname(__file__), '../resources/tradeoff-expect4.txt')) as expect_file:
dilemmas_response = expect_file.read()
responses.add(responses.POST, dilemmas_url,
@@ -82,7 +82,7 @@ def test_visualization_preferable_options():
username="username", password="password")
- with open(os.path.join(os.path.dirname(__file__), 'resources/problem.json')) as data_file:
+ with open(os.path.join(os.path.dirname(__file__), '../resources/problem.json')) as data_file:
tradeoff_analytics.dilemmas(
json.load(data_file),
find_preferable_options=True)
