Commit a4a343e
committed
test: Update test to expect UserWarning instead of ValueError for empty variant query results
The snp_frq.py code was updated to issue a UserWarning instead of raising
ValueError when a variant_query returns no results, but the corresponding
test was not updated. This fixes the test to use pytest.warns(UserWarning)
and verify that the returned dataset has zero variants.1 parent 0353643 commit a4a343e
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | | - | |
| 1523 | + | |
1524 | 1524 | | |
1525 | | - | |
1526 | | - | |
| 1525 | + | |
| 1526 | + | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
1533 | | - | |
1534 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1535 | 1537 | | |
1536 | 1538 | | |
1537 | 1539 | | |
1538 | 1540 | | |
1539 | 1541 | | |
1540 | 1542 | | |
| 1543 | + | |
1541 | 1544 | | |
1542 | 1545 | | |
1543 | 1546 | | |
| |||
0 commit comments