def clear_caches():
    board.clear_caches()
예제 #2
0
def test_query_count(django_assert_max_num_queries):
    """Test that rendering the board does not issue an excessive number of queries."""
    board.clear_caches()
    call_command("loaddata", "live")
    with django_assert_max_num_queries(10):
        str(board.Board())