Skip to content

Commit 618d4f0

Browse files
committed
Fix tests
1 parent 640b79b commit 618d4f0

File tree

4 files changed

+9
-327
lines changed

4 files changed

+9
-327
lines changed

tests/cli/test_initialize.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import os
22
from unittest import TestCase
33

4-
from investing_algorithm_framework import create_app, PortfolioConfiguration, \
5-
MarketCredential, Algorithm, AppMode, APP_MODE, RESOURCE_DIRECTORY
64
from investing_algorithm_framework.cli.initialize_app import command
7-
from tests.resources import MarketServiceStub
85

96

107
class TestAppInitialize(TestCase):
@@ -100,15 +97,15 @@ def test_init_command_default(self):
10097

10198
# Check if market_data_providers.py file exists
10299
market_data_providers_file_path = os.path.join(
103-
strategy_dir_path, "market_data_providers.py"
100+
strategy_dir_path, "data_providers.py"
104101
)
105102
self.assertTrue(os.path.exists(market_data_providers_file_path))
106103

107104
# Check if the market_data_providers.py is the same as the template
108105
self.assertTrue(
109106
self.is_same_file_content(
110107
market_data_providers_file_path,
111-
os.path.join(self.template_dir, "market_data_providers.py.template")
108+
os.path.join(self.template_dir, "data_providers.py.template")
112109
)
113110
)
114111

@@ -207,15 +204,15 @@ def test_initialize_command_web(self):
207204

208205
# Check if market_data_providers.py file exists
209206
market_data_providers_file_path = os.path.join(
210-
strategy_dir_path, "market_data_providers.py"
207+
strategy_dir_path, "data_providers.py"
211208
)
212209
self.assertTrue(os.path.exists(market_data_providers_file_path))
213210

214211
# Check if the market_data_providers.py is the same as the template
215212
self.assertTrue(
216213
self.is_same_file_content(
217214
market_data_providers_file_path,
218-
os.path.join(self.template_dir, "market_data_providers.py.template")
215+
os.path.join(self.template_dir, "data_providers.py.template")
219216
)
220217
)
221218

@@ -314,15 +311,15 @@ def test_initialize_command_azure_function(self):
314311

315312
# Check if market_data_providers.py file exists
316313
market_data_providers_file_path = os.path.join(
317-
strategy_dir_path, "market_data_providers.py"
314+
strategy_dir_path, "data_providers.py"
318315
)
319316
self.assertTrue(os.path.exists(market_data_providers_file_path))
320317

321318
# Check if the market_data_providers.py is the same as the template
322319
self.assertTrue(
323320
self.is_same_file_content(
324321
market_data_providers_file_path,
325-
os.path.join(self.template_dir, "market_data_providers.py.template")
322+
os.path.join(self.template_dir, "data_providers.py.template")
326323
)
327324
)
328325

@@ -366,11 +363,12 @@ def test_initialize_command_azure_function(self):
366363
self.assertTrue(
367364
self.is_same_file_content(
368365
env_example_file_path,
369-
os.path.join(self.template_dir, "env.example.template")
366+
os.path.join(
367+
self.template_dir, "env_azure_function.example.template"
368+
)
370369
)
371370
)
372371

373-
374372
def is_same_file_content(self, file1, file2):
375373
with open(file1, 'r') as f1, open(file2, 'r') as f2:
376374
content1 = f1.read()

tests/indicators/__init__.py

Whitespace-only changes.

tests/indicators/test_advanced.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

tests/indicators/test_utils.py

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)