Skip to content

Commit

Permalink
test: disable incorrect db model tests
Browse files Browse the repository at this point in the history
This test disables db model tests that no longer work due to changes in the database model. These
tests are being disabled instead of updated because the REST API integration tests now cover this
functionality.
  • Loading branch information
keithmanville committed Feb 12, 2025
1 parent 143bdf1 commit e169227
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/restapi/test_db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,9 @@ def test_db_add_plugin(
assert plugin_file.resource.owner.group_id == account.group.group_id


@pytest.mark.skip(
reason="Changes to the Entrypoint ORM object make this test incorrect."
)
def test_db_add_entry_point(
db: SQLAlchemy, account: libdb.FakeAccount, registered_entry_point_id: int
) -> None:
Expand All @@ -825,6 +828,9 @@ def test_db_add_entry_point(
assert len(new_entry_point.entry_point_plugin_files) > 0


@pytest.mark.skip(
reason="Changes to the Entrypoint ORM object make this test incorrect."
)
def test_db_add_job(
db: SQLAlchemy,
account: libdb.FakeAccount,
Expand All @@ -841,6 +847,9 @@ def test_db_add_job(
assert new_job.mlflow_run is None


@pytest.mark.skip(
reason="Changes to the Entrypoint ORM object make this test incorrect."
)
def test_db_add_job_that_depends_on_another_job(
db: SQLAlchemy,
registered_job_id: int,
Expand All @@ -852,6 +861,9 @@ def test_db_add_job_that_depends_on_another_job(
assert registered_job_id in {x.resource_id for x in child_job.parents}


@pytest.mark.skip(
reason="Changes to the Entrypoint ORM object make this test incorrect."
)
def test_db_add_mlflow_run_to_job(
db: SQLAlchemy,
registered_mlflow_run_job_resource_id: int,
Expand Down

0 comments on commit e169227

Please sign in to comment.