mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-10-05 07:44:47 -07:00
TESTS TESTS ADDED MORE TEST TESTED GRESOURCES TESTS TESTS I LOVE TESTS SO MUCH
- Fully covered gresource orchestrator and it helpers with tests - Use abstract command runner INSTEAD OF SUBPROCESS in gresources - Replaced some subprocesses by builtin functions
This commit is contained in:
25
tests/_helpers/dummy_logger_factory.py
Normal file
25
tests/_helpers/dummy_logger_factory.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from typing import Optional
|
||||
|
||||
from scripts.utils.logger.logger import LoggerFactory, Logger
|
||||
|
||||
|
||||
class DummyLoggerFactory(LoggerFactory):
|
||||
def create_logger(self, name: Optional[str] = None) -> 'DummyLogger':
|
||||
return DummyLogger()
|
||||
|
||||
|
||||
class DummyLogger(Logger):
|
||||
def update(self, msg):
|
||||
pass
|
||||
|
||||
def success(self, msg):
|
||||
pass
|
||||
|
||||
def error(self, msg):
|
||||
pass
|
||||
|
||||
def warn(self, msg):
|
||||
pass
|
||||
|
||||
def info(self, msg):
|
||||
pass
|
Reference in New Issue
Block a user