Changeset 43fd35c for src/gnuboat/mapservice_impl/tests/test_config.py
- Timestamp:
- Apr 19, 2020, 4:27:01 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 2a31181
- Parents:
- 77cd9cf
- File:
-
- 1 moved
-
src/gnuboat/mapservice_impl/tests/test_config.py (moved) (moved from src/mapservice/tests/test_config.py ) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/gnuboat/mapservice_impl/tests/test_config.py
r77cd9cf r43fd35c 1 1 ''' 2 Copyright (C) 2020 EngSaS - Engineering Solutions and ServicesLangenbach. All rights reserved.2 Copyright (C) 2020 EngSaS - Langenbach. All rights reserved. 3 3 4 4 This program is free software: you can redistribute it and/or modify … … 21 21 import os 22 22 23 from gnuboat _mapservice.server_impl import Config23 from gnuboat.mapservice_impl import Config 24 24 25 25 … … 27 27 def test_config_from_file(self): 28 28 """Test case load config from file 29 """29 """ 30 30 new_config = {'TESTING': True, 'DOES_NOT_EXISTS': 1234} 31 31 32 32 config = Config.Config() 33 assert config.TESTING ==False33 assert config.TESTING is False 34 34 35 35 config_file = tempfile.NamedTemporaryFile( … … 46 46 47 47 config = Config.load_from_file(config_file) 48 assert config.TESTING ==True48 assert config.TESTING is True 49 49 assert config.DOES_NOT_EXISTS == 1234 50 50 os.remove(config_file)
Note:
See TracChangeset
for help on using the changeset viewer.
