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

Last change on this file since 63 was 59, checked in by Wouter Pasman, 3 years ago

#44 manual commit of first public release, because this will cause the dist directory to move

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