Skip to content

Testing improvements #423

@pcattori

Description

@pcattori

💬 RFC

Goals:

  • Easier to write unit tests (no need to understand responses API) (Utilities for fake resources #424)
  • End-to-end (E2E) tests for workflows
    • Continuous mastering
    • Continuous categorization
    • Setup mastering project
  • Track Tamr versions: "which was the most recent version of Tamr this ran successfully on?"
  • (Ideal) property-based tests

🔦 Context

💻 Examples

import pytest

import tamr_client as tc
from tests.utils import fake_tamr

@fake_tamr
@given(s=session, i=instance)
def test_from_resource_id_mastering(s: Session, i: Instance):
    p = tc.project.from_resource_id(s, instance, "1")

    assert isinstance(p, tc.MasteringProject)
    assert p.name == "proj"
    assert p.description == "Mastering Project"

Metadata

Metadata

Labels

💬 RFCRequest For Comments

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions