test_exceptions.py 285 B

123456789
  1. from kafkaesk.app import SchemaRegistration
  2. from kafkaesk.exceptions import SchemaConflictException
  3. def test_repr_conflict():
  4. ex = SchemaConflictException(
  5. SchemaRegistration("id", 1, None), SchemaRegistration("id", 1, None)
  6. )
  7. assert "Schema Conflict" in str(ex)