(conflict_state, monkeypatch)
| 80 | |
| 81 | |
| 82 | def test_warning_on_custom_conflict_commands(conflict_state, monkeypatch): |
| 83 | a, b, status = conflict_state |
| 84 | warnings = [] |
| 85 | monkeypatch.setattr(logger, 'warning', warnings.append) |
| 86 | |
| 87 | with pytest.raises(MetaSyncConflict): |
| 88 | metasync(a, b, status, keys=['foo'], |
| 89 | conflict_resolution=lambda *a, **kw: None) |
| 90 | |
| 91 | assert warnings == ['Custom commands don\'t work on metasync.'] |
| 92 | |
| 93 | |
| 94 | def test_conflict_same_content(): |
nothing calls this directly
no test coverage detected