Ignore:
Timestamp:
Apr 19, 2020, 4:27:01 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
2a31181
Parents:
77cd9cf
Message:

Refactored code to have one gnuboat python structure

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/gnuboat/mapservice_impl/tests/test_config.py

    r77cd9cf r43fd35c  
    11'''
    2     Copyright (C) 2020 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     2    Copyright (C) 2020 EngSaS - Langenbach. All rights reserved.
    33
    44    This program is free software: you can redistribute it and/or modify
    … …  
    2121import os
    2222
    23 from gnuboat_mapservice.server_impl import Config
     23from gnuboat.mapservice_impl import Config
    2424
    2525
    … …  
    2727    def test_config_from_file(self):
    2828        """Test case load config from file
    29                 """
     29        """
    3030        new_config = {'TESTING': True, 'DOES_NOT_EXISTS': 1234}
    3131
    3232        config = Config.Config()
    33         assert config.TESTING == False
     33        assert config.TESTING is False
    3434
    3535        config_file = tempfile.NamedTemporaryFile(
    … …  
    4646
    4747        config = Config.load_from_file(config_file)
    48         assert config.TESTING == True
     48        assert config.TESTING is True
    4949        assert config.DOES_NOT_EXISTS == 1234
    5050        os.remove(config_file)
Note: See TracChangeset for help on using the changeset viewer.