Gustavo Henrique Santos Souza de Miranda
bcb76fbb7d
Add the tests for the application class
2025-07-21 19:30:52 -03:00
Gustavo Henrique Miranda
0ab1e38726
Merge pull request #74 from gmbrax/test/photoservice-unit-tests
...
Add the tests for the update on photo service
2025-07-21 19:01:23 -03:00
Gustavo Henrique Santos Souza de Miranda
668e2825d9
Add the tests for the update on photo service
2025-07-21 18:55:28 -03:00
Gustavo Henrique Miranda
5c50cad207
Merge pull request #73 from gmbrax/test/directory-manager-unit-tests
...
Add the tests for the directory manager
2025-07-21 18:07:18 -03:00
Gustavo Henrique Miranda
3212607f70
Merge pull request #72 from gmbrax/test/config-manager-unit-tests
...
Add the tests for the config manager
2025-07-21 18:07:01 -03:00
Gustavo Henrique Miranda
eafd9b9522
Merge pull request #71 from gmbrax/test/service-manager-unit-tests
...
Add the tests for the service manager
2025-07-21 18:06:36 -03:00
Gustavo Henrique Santos Souza de Miranda
27ff615d4a
Add the tests for the directory manager
2025-07-21 18:03:01 -03:00
Gustavo Henrique Santos Souza de Miranda
ec0c8a6f71
Add the tests for the config manager
2025-07-21 17:43:39 -03:00
Gustavo Henrique Santos Souza de Miranda
bf64255fe2
Add the tests for the service manager
2025-07-21 16:58:27 -03:00
Gustavo Henrique Santos Souza de Miranda
32f363f15a
Add the tests for the delete photo service and also fixed the missing import
2025-07-21 16:48:09 -03:00
Gustavo Henrique Santos Souza de Miranda
65cf7b04f3
Merge remote-tracking branch 'origin/test/photoservice-unit-tests' into test/photoservice-unit-tests
...
# Conflicts:
# tests/conftest.py
# tests/service/test_photo_service.py
2025-07-21 16:31:59 -03:00
Gustavo Henrique Santos Souza de Miranda
44824cd690
Add the tests for the update photo service and also improved the fixture
2025-07-21 16:30:54 -03:00
Gustavo Henrique Santos Souza de Miranda
32b1c24846
Add the tests for the read methods for the photo service
2025-07-21 16:19:10 -03:00
Gustavo Henrique Santos Souza de Miranda
5d0d4fc5ac
Add the tests for the hash methods and the create methods
2025-07-21 16:19:09 -03:00
Gustavo Henrique Santos Souza de Miranda
5f20bd3624
Add the tests for the read methods for the photo service
2025-07-21 02:48:04 -03:00
Gustavo Henrique Santos Souza de Miranda
2f81e4ff06
Add the tests for the hash methods and the create methods
2025-07-21 02:28:04 -03:00
Gustavo Henrique Miranda
d840299398
Merge pull request #68 from gmbrax/test/database-unit-test
...
Change the import to avoid importing by the folder
2025-07-21 01:23:10 -03:00
Gustavo Henrique Santos Souza de Miranda
ca0b8c554c
Change the import to avoid importing by the folder
2025-07-21 01:22:05 -03:00
Gustavo Henrique Miranda
ed2dbee1a3
Merge pull request #67 from gmbrax/test/traveldiaryservice-unit-test
...
Test/traveldiaryservice unit test
2025-07-21 01:18:08 -03:00
Gustavo Henrique Miranda
6e17064ce6
Merge pull request #66 from gmbrax/test/entryservice-unit-test
...
Test/entryservice unit test
2025-07-21 01:08:46 -03:00
Gustavo Henrique Santos Souza de Miranda
a18c621d5c
Add the tests for delete the entries method
2025-07-21 01:07:11 -03:00
Gustavo Henrique Miranda
998fa3ce2f
Merge pull request #65 from gmbrax/test/database-unit-test
...
Create the test for the database class
2025-07-21 00:58:04 -03:00
Gustavo Henrique Santos Souza de Miranda
66879b5a7d
Add the tests for update the entries method
2025-07-21 00:53:04 -03:00
Gustavo Henrique Santos Souza de Miranda
152bff85e5
Add the read entries unit tests
2025-07-20 23:53:53 -03:00
Gustavo Henrique Santos Souza de Miranda
f374285e2a
Add the fixture for the read entry tests
2025-07-20 23:52:45 -03:00
Gustavo Henrique Santos Souza de Miranda
b020f8500b
Add The tests for the filename sanitization function and the create travel diary
2025-07-20 23:38:36 -03:00
Gustavo Henrique Santos Souza de Miranda
cc95ce669f
Merge remote-tracking branch 'origin/test/entryservice-unit-test' into test/entryservice-unit-test
...
# Conflicts:
# tests/service/test_entry_service.py
2025-07-20 23:16:48 -03:00
Gustavo Henrique Santos Souza de Miranda
d36ff829db
Remove the shared fixtures that are available on conftest.py
2025-07-20 23:15:08 -03:00
Gustavo Henrique Santos Souza de Miranda
0173465943
Add all tests to test the delete of entries
2025-07-20 23:13:46 -03:00
Gustavo Henrique Santos Souza de Miranda
5b9a5bfe24
Add all tests to test the read of entries
2025-07-20 23:13:46 -03:00
Gustavo Henrique Santos Souza de Miranda
95a3a13ee2
Add all tests to test the update of entries
2025-07-20 23:13:46 -03:00
Gustavo Henrique Santos Souza de Miranda
f9fb660d7c
Add a test to test the creation of entries with null on nullable fields
2025-07-20 23:13:45 -03:00
Gustavo Henrique Santos Souza de Miranda
f7a7289b5e
test(entry_service): add test for creating an entry without photos
...
This commit adds a unit test to ensure that the EntryService's
`create` method correctly handles cases where an empty list of photos
is provided.
It verifies that the entry is created successfully and that the
`photos` relationship is an empty list, confirming the feature's
flexibility.
2025-07-20 23:13:45 -03:00
Gustavo Henrique Santos Souza de Miranda
0227879bb3
test(entry_service): add a failure case test for create method
...
This commit adds a unit test for an important "unhappy path" in the
EntryService's `create` method.
It specifically verifies that the method gracefully returns `None`
when provided with a `travel_diary_id` that does not exist in the
database, ensuring the initial guard clause works as expected.
2025-07-20 23:13:45 -03:00
Gustavo Henrique Santos Souza de Miranda
e46f02cc39
test(entry_service): add unit test for creating a new entry
...
This commit introduces the first unit test for the EntryService,
covering the "happy path" for the `create` method.
It verifies that a new entry is correctly persisted to the database,
including its relationship with associated Photo objects. The test
leverages fixtures to create an isolated, in-memory database
populated with the necessary dependencies.
2025-07-20 23:13:45 -03:00
Gustavo Henrique Santos Souza de Miranda
88a0b9cf80
Refactor to add conftest.py to share fixtures
2025-07-20 23:07:04 -03:00
Gustavo Henrique Santos Souza de Miranda
1629b9d52c
Add all tests to test the delete of entries
2025-07-20 22:38:55 -03:00
Gustavo Henrique Santos Souza de Miranda
790a9ea3f0
Add all tests to test the read of entries
2025-07-20 22:26:40 -03:00
Gustavo Henrique Santos Souza de Miranda
cec1827635
Add all tests to test the update of entries
2025-07-20 22:12:09 -03:00
Gustavo Henrique Santos Souza de Miranda
1c8026620c
Add a test to test the creation of entries with null on nullable fields
2025-07-20 20:47:12 -03:00
Gustavo Henrique Santos Souza de Miranda
77e191f480
test(entry_service): add test for creating an entry without photos
...
This commit adds a unit test to ensure that the EntryService's
`create` method correctly handles cases where an empty list of photos
is provided.
It verifies that the entry is created successfully and that the
`photos` relationship is an empty list, confirming the feature's
flexibility.
2025-07-20 16:03:45 -03:00
Gustavo Henrique Santos Souza de Miranda
3c7925cb1c
test(entry_service): add a failure case test for create method
...
This commit adds a unit test for an important "unhappy path" in the
EntryService's `create` method.
It specifically verifies that the method gracefully returns `None`
when provided with a `travel_diary_id` that does not exist in the
database, ensuring the initial guard clause works as expected.
2025-07-20 15:21:49 -03:00
Gustavo Henrique Santos Souza de Miranda
c4dceda942
test(entry_service): add unit test for creating a new entry
...
This commit introduces the first unit test for the EntryService,
covering the "happy path" for the `create` method.
It verifies that a new entry is correctly persisted to the database,
including its relationship with associated Photo objects. The test
leverages fixtures to create an isolated, in-memory database
populated with the necessary dependencies.
2025-07-20 03:35:22 -03:00
Gustavo Henrique Santos Souza de Miranda
8119ae74f6
Create the test for the database class
2025-07-20 01:50:12 -03:00