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

Last change on this file since 93 was 90, checked in by Bart Vastenhouw, 3 years ago

Refactor to help reusing partiesserver.

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.