diff --git a/tests/functional/groups/test_access.py b/tests/functional/groups/test_access.py index c8fd1e2672c..ce948732e1d 100644 --- a/tests/functional/groups/test_access.py +++ b/tests/functional/groups/test_access.py @@ -136,7 +136,6 @@ type_params: measure: name: "people" - model: "ref('people_model')" meta: my_meta: 'testing' config: @@ -218,9 +217,3 @@ def test_access_attribute(self, project): manifest = get_manifest(project.project_root) metric_id = "metric.test.number_of_people" assert manifest.metrics[metric_id].group == "analytics" - - # Change group of metric - write_file(v2_people_metric_yml, "models", "people_metric.yml") - # Should raise a reference error - with pytest.raises(DbtReferenceError): - run_dbt(["run"]) diff --git a/tests/functional/metrics/fixtures.py b/tests/functional/metrics/fixtures.py index 4c4cc5f42f3..4a5a3f4edd3 100644 --- a/tests/functional/metrics/fixtures.py +++ b/tests/functional/metrics/fixtures.py @@ -532,21 +532,6 @@ my_meta: 'testing' """ -metric_without_timestamp_or_timegrains_yml = """ -version: 2 - -metrics: - - name: number_of_people - label: "Number of people" - description: Total count of people - type: simple - type_params: - measure: - name: people - meta: - my_meta: 'testing' -""" - invalid_metric_without_timestamp_with_time_grains_yml = """ version: 2 diff --git a/tests/functional/metrics/test_metrics.py b/tests/functional/metrics/test_metrics.py index f627bdc96e4..b34cb7c35bd 100644 --- a/tests/functional/metrics/test_metrics.py +++ b/tests/functional/metrics/test_metrics.py @@ -18,7 +18,6 @@ downstream_model_sql, invalid_derived_metric_contains_model_yml, derived_metric_yml, - metric_without_timestamp_or_timegrains_yml, invalid_metric_without_timestamp_with_time_grains_yml, invalid_metric_without_timestamp_with_window_yml, ) @@ -49,33 +48,6 @@ def test_simple_metric( assert metric_ids == expected_metric_ids -class TestSimpleMetricsNoTimestamp: - @pytest.fixture(scope="class") - def models(self): - return { - "people_metrics.yml": metric_without_timestamp_or_timegrains_yml, - "people.sql": models_people_sql, - } - - def test_simple_metric_no_timestamp( - self, - project, - ): - # initial run - results = run_dbt(["run"]) - assert len(results) == 1 - manifest = get_manifest(project.project_root) - metric_ids = list(manifest.metrics.keys()) - expected_metric_ids = [ - "metric.test.number_of_people", - ] - assert metric_ids == expected_metric_ids - - # make sure the 'expression' metric depends on the two upstream metrics - metric_test = manifest.metrics["metric.test.number_of_people"] - assert metric_test.timestamp is None - - class TestInvalidRefMetrics: @pytest.fixture(scope="class") def models(self):