Coverage for src/probable_fiesta/app/builder/context.py: 86%
14 statements
« prev ^ index » next coverage.py v7.1.0, created at 2023-01-30 18:57 -0500
« prev ^ index » next coverage.py v7.1.0, created at 2023-01-30 18:57 -0500
1"""App context class."""
3class Context:
4 def __init__(self, name=None, command_queue=None):
5 self.name = name
6 self.command_queue = command_queue
8 def __str__(self):
9 return f"Context: {self.__dict__}"
11 @staticmethod
12 def new_context(name=None, command_queue=None):
13 return Context(name, command_queue)
15 class Factory():
16 @staticmethod
17 def new_context(name=None, command_queue=None):
18 return Context(name, command_queue)
20 factory = Factory()