def test_list_output_json(self, project: TestProjInfo):
        """Test whether the command `dbt list --output json` works"""
        model_catcher = EventCatcher(event_to_catch=LogModelResult)
        batch_catcher = EventCatcher(event_to_catch=LogBatchResult)

        _, microbatch_json = run_dbt(
            ["list", "--output", "json"], callbacks=[model_catcher.catch, batch_catcher.catch]
        )
        microbatch_dict = json.loads(microbatch_json)
        assert microbatch_dict["config"]["begin"] == "2020-01-01T00:00:00"
Test whether the command `dbt list --output json` works
tests/functional/microbatch/test_microbatch.py