Skip to content

Unit test for mock gorm.db of api_collector #1766

@mappjzc

Description

@mappjzc

Description

unit test the db SQL wheather it is right.
It is the subtask of https://github.com/merico-dev/lake/issues/1656

Describe the solution you'd like

the SQL string of api_collector must be right in unit test.
gorm.db must not really run in test.

Has the Feature been Requested Before?

Please link any other

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

type/testThis issue is to test plugins or features

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions