Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Remove_states_from_context.patch

This file was deleted.

2 changes: 1 addition & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

python3 -m unittest discover -s ../
pytest ../.
2 changes: 1 addition & 1 deletion investing_algorithm_framework/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from investing_algorithm_framework.utils.version import get_version

VERSION = (1, 0, 0, 'alpha', 0)
VERSION = (0, 1, 0, 'alpha', 0)

13 changes: 0 additions & 13 deletions investing_algorithm_framework/tests/resources/__init__.py

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
'colorama', 'wrapt', 'requests'
],
python_requires='>=3.6',
scripts=['investing_algorithm_framework/bin/investing-algorithm-framework-admin'],
scripts=['bin/investing-algorithm-framework-admin'],
include_package_data=True,
)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from investing_algorithm_framework.tests.core.data.data_providers.resources import TestDataProviderOne, \
TestDataProviderTwo, TestObserver
from tests.core.data_providers.resources import TestDataProviderOne, TestDataProviderTwo, TestObserver


def test():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from threading import active_count
from unittest import TestCase
from time import sleep

from investing_algorithm_framework.tests.core.executors.resources import TestExecutor, TestWorkerOne, TestWorkerTwo, \
from tests.core.executors.resources import TestExecutor, TestWorkerOne, TestWorkerTwo, \
TestObserver, TestWorkerThree


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os
from sqlalchemy import Column, String, Integer

from investing_algorithm_framework.tests.resources import BaseTestMixin, utils
from tests.resources import BaseTestMixin
from tests.resources import utils
from investing_algorithm_framework.core.configuration import settings
from investing_algorithm_framework.core.extensions import db

Expand Down
13 changes: 13 additions & 0 deletions tests/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import os

import tests.resources.standard_settings


class BaseTestMixin:

@staticmethod
def initialize_environment():
os.environ.setdefault(
'INVESTING_BOT_FRAMEWORK_SETTINGS_MODULE', 'tests.resources.standard_settings'
)

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import random
import string


def random_string(n, spaces: bool = False):

if spaces:
Expand Down
File renamed without changes.