Skip to content
Merged
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
379 changes: 0 additions & 379 deletions CHANGELOG.md

This file was deleted.

596 changes: 596 additions & 0 deletions CHANGELOG.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Welcome to the SuperAnnotate Python Software Development Kit (SDK), which enable
:target: https://github.com/superannotateai/superannotate-python-sdk/blob/master/LICENSE/
:alt: License
.. |Changelog| image:: https://img.shields.io/static/v1?label=change&message=log&color=yellow&style=flat-square
:target: https://github.com/superannotateai/superannotate-python-sdk/blob/master/CHANGELOG.md
:target: https://github.com/superannotateai/superannotate-python-sdk/blob/master/CHANGELOG.rst
:alt: Changelog

Resources
Expand Down
1 change: 1 addition & 0 deletions docs/source/changelog_link.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../../CHANGELOG.rst
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
API Reference <api_reference/index>
CLI Reference <cli_client>
SA Server <sa_server>
History <changelog_link>
LICENSE.rst

----------
Expand Down
4 changes: 3 additions & 1 deletion src/superannotate/lib/app/interface/base_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def _track_method(self, args, kwargs, success: bool):
team_name = client.controller.team_data.name

properties["Success"] = success
default = self.get_default_payload(team_name=team_name, user_email=user_email)
default = self.get_default_payload(
team_name=team_name, user_email=user_email
)
self._track(
user_email,
event_name,
Expand Down
16 changes: 4 additions & 12 deletions tests/integration/mixpanel/test_mixpanel_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def test_init(self, track_method):
@patch("lib.app.interface.base_interface.Tracker._track")
@patch("lib.core.usecases.GetTeamUseCase")
@patch("lib.infrastructure.serviceprovider.ServiceProvider.get_user")
def test_init_via_token(
self, get_user, get_team_use_case, track_method
):
def test_init_via_token(self, get_user, get_team_use_case, track_method):
SAClient(token="test=3232")
result = list(track_method.call_args)[0]
payload = self.default_payload
Expand All @@ -87,9 +85,7 @@ def test_init_via_token(
@patch("lib.app.interface.base_interface.Tracker._track")
@patch("lib.core.usecases.GetTeamUseCase")
@patch("lib.infrastructure.serviceprovider.ServiceProvider.get_user")
def test_init_via_config_file(
self, get_user, get_team_use_case, track_method
):
def test_init_via_config_file(self, get_user, get_team_use_case, track_method):
with tempfile.TemporaryDirectory() as config_dir:
config_ini_path = f"{config_dir}/config.ini"
with patch("lib.core.CONFIG_INI_FILE_LOCATION", config_ini_path):
Expand Down Expand Up @@ -191,12 +187,8 @@ def test_create_project_multi_thread(self, track_method):
"project_description": self.PROJECT_DESCRIPTION,
"project_type": self.PROJECT_TYPE,
}
thread_1 = threading.Thread(
target=sa.create_project, kwargs=kwargs_1
)
thread_2 = threading.Thread(
target=sa.create_project, kwargs=kwargs_2
)
thread_1 = threading.Thread(target=sa.create_project, kwargs=kwargs_1)
thread_2 = threading.Thread(target=sa.create_project, kwargs=kwargs_2)
thread_1.start()
thread_2.start()
thread_1.join()
Expand Down