()
| 107 | |
| 108 | |
| 109 | def test_or(): |
| 110 | query = ( |
| 111 | (Query().val1 == 1) | |
| 112 | (Query().val2 == 2) |
| 113 | ) |
| 114 | assert query({'val1': 1}) |
| 115 | assert query({'val2': 2}) |
| 116 | assert query({'val1': 1, 'val2': 2}) |
| 117 | assert not query({'val1': '', 'val2': ''}) |
| 118 | assert hash(query) |
| 119 | |
| 120 | |
| 121 | def test_and(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…