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