source: geniuswebcore/test/geniusweb/profileconnection/ProfileConnectionFactoryTest.py@ 100

Last change on this file since 100 was 100, checked in by ruud, 20 months ago

python installs also wheel to avoid error messages

File size: 598 bytes
Line 
1from builtins import BaseException
2import unittest
3
4from tudelft_utilities_logging.Reporter import Reporter
5from uri.uri import URI
6
7from geniusweb.profileconnection.ProfileConnectionFactory import ProfileConnectionFactory
8
9
10class DummyReporter(Reporter):
11 def log(self, level:int, msg:str, thrown:BaseException=None):
12 print(msg)
13
14class FileProfileConnectorTest(unittest.TestCase):
15 def testLoad(self):
16 profint= ProfileConnectionFactory.create(URI("file:test/resources/japantrip1.json"), DummyReporter())
17 self.assertEqual("japantrip1", profint.getProfile().getName())
Note: See TracBrowser for help on using the repository browser.