2023-03-09 09:30:47 +01:00
|
|
|
# standard imports
|
|
|
|
import unittest
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
# external imports
|
2023-04-30 08:38:42 +02:00
|
|
|
#from jsonschema import validate as json_validate
|
|
|
|
# local imports
|
|
|
|
from cic_schema.nft import NFT
|
2023-03-09 09:30:47 +01:00
|
|
|
|
|
|
|
test_dir = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
testdata_dir = os.path.join(test_dir, 'testdata')
|
2023-04-30 08:38:42 +02:00
|
|
|
#data_dir = os.path.join(test_dir, '..', 'cic_schema', 'data')
|
2023-03-09 09:30:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TestJsonData(unittest.TestCase):
|
|
|
|
|
|
|
|
def setUp(self):
|
2023-04-30 08:38:42 +02:00
|
|
|
self.path = os.path.join(testdata_dir, 'test_valid.json')
|
|
|
|
self.nft = NFT.from_path(self.path)
|
2023-03-09 09:30:47 +01:00
|
|
|
|
|
|
|
|
2023-04-30 08:38:42 +02:00
|
|
|
def test_valid(self):
|
|
|
|
pass
|
2023-03-09 09:30:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|