()
| 24 | |
| 25 | |
| 26 | def test_repeated_ref(): |
| 27 | with pytest.raises(SchemaError, match='SchemaError: Duplicate ref: `foobar`'): |
| 28 | SchemaSerializer( |
| 29 | core_schema.tuple_positional_schema( |
| 30 | [ |
| 31 | core_schema.definitions_schema( |
| 32 | core_schema.definition_reference_schema('foobar'), [core_schema.int_schema(ref='foobar')] |
| 33 | ), |
| 34 | core_schema.definitions_schema( |
| 35 | core_schema.definition_reference_schema('foobar'), [core_schema.int_schema(ref='foobar')] |
| 36 | ), |
| 37 | ] |
| 38 | ) |
| 39 | ) |
| 40 | |
| 41 | |
| 42 | def test_repeat_after(): |
nothing calls this directly
no test coverage detected