Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ minversion = 3.7
log_cli=true
python_files = test_*.py
;pytest_plugins = ['pytest_profiling']
addopts = -n auto --dist=loadscope
;addopts = -n auto --dist=loadscope

7 changes: 7 additions & 0 deletions src/superannotate/lib/app/interface/base_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from lib.infrastructure.validators import wrap_error
from mixpanel import Mixpanel
from superannotate import __version__
from superannotate_core.infrastructure import Session


class BaseInterfaceFacade:
Expand Down Expand Up @@ -70,6 +71,12 @@ def __init__(self, token: TokenStr = None, config_path: str = None):
raise AppException("Credentials not provided.")
setup_logging(config.LOGGING_LEVEL, config.LOGGING_PATH)
self.controller = Controller(config)
self.session = Session(
token=config.API_TOKEN,
api_url=config.API_URL,
team_id=self.controller.team_id,
)

BaseInterfaceFacade.REGISTRY.append(self)

@staticmethod
Expand Down
Loading