Skip to content

Commit 169853a

Browse files
authored
fix: TT-384 revert changes
1 parent 94d196a commit 169853a

File tree

5 files changed

+288
-329
lines changed

5 files changed

+288
-329
lines changed

tests/commons/data_access_layer/file_stream_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from commons.data_access_layer.file_stream import FileStream
44

5-
fs = FileStream("storageaccounteystr82c5","tt-common-files")
5+
fs = FileStream("storagefiles2","ioetfiles")
66

77
def test_get_file_stream_return_file_when_enter_file_name():
8-
result = fs.get_file_stream("activity_test.json")
8+
result = fs.get_file_stream("activity.json")
99

1010
assert len(json.load(result)) == 15
1111

tests/time_tracker_api/activities/activities_model_test.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,3 @@ def test_create_activity_should_add_active_status(
6464
activity_repository_create_mock.assert_called_with(
6565
data=expect_argument, event_context=ANY
6666
)
67-
68-
69-
def test_find_all_from_blob_storage(
70-
event_context: EventContext,
71-
activity_repository: ActivityCosmosDBRepository,
72-
):
73-
activity_repository.container = Mock()
74-
75-
result = activity_repository.find_all_from_blob_storage(
76-
event_context=event_context,
77-
file_name="activity_test.json"
78-
)
79-
assert len(result) == 15

tests/time_tracker_api/activities/activities_namespace_test.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from unittest.mock import ANY
2-
import pytest
2+
33
from faker import Faker
44
from flask import json
55
from flask.testing import FlaskClient
@@ -18,14 +18,6 @@
1818

1919
fake_activity = ({"id": fake.random_int(1, 9999)}).update(valid_activity_data)
2020

21-
def test_get_all_activities_return_list_activities_when_send_get_request(
22-
client: FlaskClient, valid_header: dict
23-
):
24-
response = client.get(
25-
"/activities", headers=valid_header, follow_redirects=True
26-
)
27-
28-
assert HTTPStatus.OK == response.status_code
2921

3022
def test_create_activity_should_succeed_with_valid_request(
3123
client: FlaskClient, mocker: MockFixture, valid_header: dict
@@ -63,7 +55,7 @@ def test_create_activity_should_reject_bad_request(
6355
assert HTTPStatus.BAD_REQUEST == response.status_code
6456
repository_create_mock.assert_not_called()
6557

66-
@pytest.mark.skip(reason="There is currently no way to test this. Getting the value of the azure blob storage")
58+
6759
def test_list_all_active(
6860
client: FlaskClient, mocker: MockFixture, valid_header: dict
6961
):
@@ -89,7 +81,7 @@ def test_list_all_active(
8981
max_count=ANY,
9082
)
9183

92-
@pytest.mark.skip(reason="There is currently no way to test this. Getting the value of the azure blob storage")
84+
9385
def test_list_all_active_activities(
9486
client: FlaskClient, mocker: MockFixture, valid_header: dict
9587
):

0 commit comments

Comments
 (0)