-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with plan when adding/removing fields
- Loading branch information
Showing
4 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from dbt_jobs_as_code.schemas import check_job_mapping_same | ||
from dbt_jobs_as_code.schemas.job import JobDefinition | ||
|
||
|
||
def test_check_job_mapping_same(): | ||
mock_job1 = JobDefinition( | ||
id=1, | ||
name="Job 1", | ||
project_id=100, | ||
environment_id=200, | ||
account_id=300, | ||
settings={}, | ||
run_generate_sources=False, | ||
execute_steps=[], | ||
generate_docs=False, | ||
schedule={"cron": "0 14 * * 0,1,2,3,4,5,6"}, | ||
triggers={}, | ||
) | ||
mock_job2 = JobDefinition( | ||
id=2, | ||
name="Job 2", | ||
project_id=100, | ||
environment_id=400, | ||
account_id=300, | ||
deferring_environment_id=400, | ||
settings={}, | ||
run_generate_sources=False, | ||
execute_steps=[], | ||
generate_docs=False, | ||
schedule={"cron": "0 14 * * 0,1,2,3,4,5,6"}, | ||
triggers={}, | ||
) | ||
|
||
assert check_job_mapping_same(mock_job1, mock_job2) == False |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.