mirror of
https://github.com/dtomlinson91/panaetius.git
synced 2025-12-22 04:55:44 +00:00
initial commit
This commit is contained in:
1
tests/__header__.py
Normal file
1
tests/__header__.py
Normal file
@@ -0,0 +1 @@
|
||||
__header__ = 'panaetius_test'
|
||||
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
31
tests/test.py
Normal file
31
tests/test.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import panaetius
|
||||
|
||||
# from panaetius import CONFIG as CONFIG
|
||||
# from panaetius import logger as logger
|
||||
|
||||
print(panaetius.__header__)
|
||||
|
||||
panaetius.set_config(panaetius.CONFIG, 'logging.level')
|
||||
|
||||
# print(panaetius.CONFIG.logging_format)
|
||||
print(panaetius.CONFIG.logging_path)
|
||||
print(panaetius.config_inst.CONFIG_PATH)
|
||||
|
||||
# panaetius.logger.info('test event')
|
||||
|
||||
|
||||
panaetius.logger.info('setting foo.bar value')
|
||||
panaetius.set_config(panaetius.CONFIG, 'foo.bar', mask=True)
|
||||
|
||||
panaetius.logger.info(f'foo.bar set to {panaetius.CONFIG.foo_bar}')
|
||||
|
||||
# print((panaetius.CONFIG.path))
|
||||
# print(panaetius.CONFIG.logging_level)
|
||||
|
||||
panaetius.set_config(panaetius.CONFIG, 'test', mask=True)
|
||||
panaetius.logger.info(f'test_root={panaetius.CONFIG.test}')
|
||||
|
||||
print(panaetius.CONFIG.config_file)
|
||||
|
||||
# for i in panaetius.CONFIG.deferred_messages:
|
||||
# panaetius.logger.debug(i)
|
||||
5
tests/test_panaetius.py
Normal file
5
tests/test_panaetius.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from panaetius import __version__
|
||||
|
||||
|
||||
def test_version():
|
||||
assert __version__ == '0.1.0'
|
||||
Reference in New Issue
Block a user