-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.py
45 lines (36 loc) · 1.13 KB
/
test.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
import os
from dotenv import load_dotenv
from datetime import datetime, timedelta
from dateutil.parser import parse
import pytz
from DaoModule.Dao import Dao
from TokenManagementModule.Receiver import Receiver
from BuyingModule.celery_task import buy_nft
load_dotenv()
broker = os.getenv('BROKER')
# receiver = Receiver()
# receiver.receive_data([{"login": "[email protected]", "password": "TestTest123$"}], [1,])
# data = Dao.get_history_data(1, 30)
# print(data)
# labels = []
# values = []
# for elem in data:
#
# labels.append(parse(elem['add_time']).strftime('%m-%d-%Y'))
# values.append(elem['price'])
#
# print(labels)
# print(values)
# receiver = Receiver()
# receiver.receive_data([{"login": "[email protected]", "password": "TestTest123$"}], [1,], buy_nft)
import pytest
@pytest.fixture
def setup():
# Setup code if necessary
pass
def test_buy_transaction():
# Implement test for WaxBloksIoTransactions.buy
assert True # Replace with actual assertions
def test_deposit_transaction():
# Implement test for WaxBloksIoTransactions.deposit
assert True # Replace with actual assertions