File size: 695 Bytes
d2e7940
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import pytest

from tests.helpers.run_command import run_command


@pytest.mark.slow
def test_debug_default():
    command = ["train.py", "debug=default"]
    run_command(command)


def test_debug_limit_batches():
    command = ["train.py", "debug=limit_batches"]
    run_command(command)


def test_debug_overfit():
    command = ["train.py", "debug=overfit"]
    run_command(command)


@pytest.mark.slow
def test_debug_profiler():
    command = ["train.py", "debug=profiler"]
    run_command(command)


def test_debug_step():
    command = ["train.py", "debug=step"]
    run_command(command)


def test_debug_test_only():
    command = ["train.py", "debug=test_only"]
    run_command(command)