-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunittest_trading_suite.py
46 lines (37 loc) · 1.36 KB
/
unittest_trading_suite.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# File: unittest_trading_suite.py
#
# Part of ‘UNICORN Trading Suite’
# Project website: https://www.lucit.tech/unicorn-trading-suite.html
# Github: https://github.com/LUCIT-Systems-and-Development/unicorn-trading-suite
# Documentation: https://unicorn-trading-suite.docs.lucit.tech
# PyPI: https://pypi.org/project/unicorn-trading-suite
# LUCIT Online Shop: https://shop.lucit.services/software
#
# License: LSOSL - LUCIT Synergetic Open Source License
# https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/blob/master/LICENSE
#
# Author: LUCIT Systems and Development
#
# Copyright (c) 2019-2023, LUCIT Systems and Development (https://www.lucit.tech)
# All rights reserved.
import unicorn_trading_suite
import logging
import unittest
import os
import tracemalloc
tracemalloc.start(25)
logging.basicConfig(level=logging.DEBUG,
filename=os.path.basename(__file__) + '.log',
format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",
style="{")
print(f"Starting unittests!")
class Suite(unittest.TestCase):
def test_get_name(self):
print(unicorn_trading_suite.manager.__app_name__)
def test_get_version(self):
print(unicorn_trading_suite.manager.__version__)
if __name__ == '__main__':
unittest.main()