Last change
on this file since 60 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 | |
---|
1 | import unittest
|
---|
2 |
|
---|
3 | from tudelft_utilities_logging.Reporter import Reporter
|
---|
4 | from uri import URI
|
---|
5 |
|
---|
6 | from geniusweb.profileconnection.ProfileConnectionFactory import ProfileConnectionFactory
|
---|
7 |
|
---|
8 |
|
---|
9 | class DummyReporter(Reporter):
|
---|
10 | def log(self, level:int, msg:str, thrown:Exception=None):
|
---|
11 | print(msg)
|
---|
12 |
|
---|
13 | class 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.