-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueThis issue is good for newcomersThis issue is good for newcomers
Description
Bug summary
prefect/src/integrations/prefect-dbt/tests/cli/test_commands.py
Lines 256 to 266 in 9f8b7b6
| @pytest.fixture | |
| def dbt_runner_freshness_success( | |
| monkeypatch: pytest.MonkeyPatch, mock_dbt_runner_freshness_success: dbtRunnerResult | |
| ) -> None: | |
| _mock_dbt_runner_freshness_success = MagicMock( | |
| return_value=mock_dbt_runner_freshness_success | |
| ) | |
| monkeypatch.setattr( | |
| "dbt.cli.main.dbtRunner.invoke", _mock_dbt_runner_freshness_success | |
| ) | |
| return _mock_dbt_runner_freshness_success |
this return a MagicMock, not None.
Version info
main branch.
Additional context
disclaim: implementing type check for pytest fixture.
related background is here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueThis issue is good for newcomersThis issue is good for newcomers