emoss08 / Trenova

An Open Source AI-driven asset based transportation management system
http://trenova.app
Other
25 stars 7 forks source link

🍪(chore): impl tests #268

Closed emoss08 closed 4 months ago

emoss08 commented 4 months ago

Summary by Sourcery

This pull request introduces new test utilities and comprehensive test cases for various services. It also updates the CI workflow to support database testing and enhances the AccessorialCharge model.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request primarily focuses on implementing tests for various components of the project. It includes the addition of new test files, modifications to existing configurations, and some refactoring to support the new tests.

File-Level Changes

Files Changes
internal/api/services/accessoricharge.service_test.go
internal/api/services/commenttype.service_test.go
internal/api/services/chargetype.service_test.go
Added tests for various service components.
pkg/testutils/test_db.go
pkg/testutils/file.go
pkg/testutils/test_minio_client.go
pkg/testutils/test_fiber_app.go
pkg/testutils/factory/accessorial_charge_factory.go
pkg/testutils/factory/organization_factory.go
pkg/testutils/rsa_keys.go
pkg/testutils/factory/state_factory.go
pkg/testutils/factory/business_unit_factory.go
Added various utility and factory files to support testing.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.