Skip to content

Commit 841981f

Browse files
authored
Merge pull request #600 from superannotateai/1905_docs
added History page in docs
2 parents 8698998 + ce7f1fb commit 841981f

File tree

7 files changed

+606
-393
lines changed

7 files changed

+606
-393
lines changed

CHANGELOG.md

Lines changed: 0 additions & 379 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 596 additions & 0 deletions
Large diffs are not rendered by default.

README.rst

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

1818
Resources

docs/source/changelog_link.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../CHANGELOG.rst

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
API Reference <api_reference/index>
1717
CLI Reference <cli_client>
1818
SA Server <sa_server>
19+
History <changelog_link>
1920
LICENSE.rst
2021

2122
----------

src/superannotate/lib/app/interface/base_interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ def _track_method(self, args, kwargs, success: bool):
211211
team_name = client.controller.team_data.name
212212

213213
properties["Success"] = success
214-
default = self.get_default_payload(team_name=team_name, user_email=user_email)
214+
default = self.get_default_payload(
215+
team_name=team_name, user_email=user_email
216+
)
215217
self._track(
216218
user_email,
217219
event_name,

tests/integration/mixpanel/test_mixpanel_decorator.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def test_init(self, track_method):
6767
@patch("lib.app.interface.base_interface.Tracker._track")
6868
@patch("lib.core.usecases.GetTeamUseCase")
6969
@patch("lib.infrastructure.serviceprovider.ServiceProvider.get_user")
70-
def test_init_via_token(
71-
self, get_user, get_team_use_case, track_method
72-
):
70+
def test_init_via_token(self, get_user, get_team_use_case, track_method):
7371
SAClient(token="test=3232")
7472
result = list(track_method.call_args)[0]
7573
payload = self.default_payload
@@ -87,9 +85,7 @@ def test_init_via_token(
8785
@patch("lib.app.interface.base_interface.Tracker._track")
8886
@patch("lib.core.usecases.GetTeamUseCase")
8987
@patch("lib.infrastructure.serviceprovider.ServiceProvider.get_user")
90-
def test_init_via_config_file(
91-
self, get_user, get_team_use_case, track_method
92-
):
88+
def test_init_via_config_file(self, get_user, get_team_use_case, track_method):
9389
with tempfile.TemporaryDirectory() as config_dir:
9490
config_ini_path = f"{config_dir}/config.ini"
9591
with patch("lib.core.CONFIG_INI_FILE_LOCATION", config_ini_path):
@@ -191,12 +187,8 @@ def test_create_project_multi_thread(self, track_method):
191187
"project_description": self.PROJECT_DESCRIPTION,
192188
"project_type": self.PROJECT_TYPE,
193189
}
194-
thread_1 = threading.Thread(
195-
target=sa.create_project, kwargs=kwargs_1
196-
)
197-
thread_2 = threading.Thread(
198-
target=sa.create_project, kwargs=kwargs_2
199-
)
190+
thread_1 = threading.Thread(target=sa.create_project, kwargs=kwargs_1)
191+
thread_2 = threading.Thread(target=sa.create_project, kwargs=kwargs_2)
200192
thread_1.start()
201193
thread_2.start()
202194
thread_1.join()

0 commit comments

Comments
 (0)