Esempio n. 1
0
def test_darks_1():
    with ptr(Exception):
        Darks(instrument=random.choice(TEST_INVALID_INPUTS))
Esempio n. 2
0
def test_instrument_2():
    with ptr(Exception):
        Instrument(name=random.choice(TEST_INVALID_INPUTS))
Esempio n. 3
0
def test_foci_1():
    with ptr(Exception):
        Foci(instrument=random.choice(TEST_INVALID_INPUTS))
Esempio n. 4
0
def test_darks_0():
    with ptr(Exception):
        Darks(telescope=random.choice(TEST_INVALID_INPUTS))
Esempio n. 5
0
def test_non_sidereal_1():
    with ptr(Exception):
        NonSidereal(instrument=random.choice(TEST_INVALID_INPUTS))
Esempio n. 6
0
def test_foci_0():
    with ptr(Exception):
        Foci(telescope=random.choice(TEST_INVALID_INPUTS))
Esempio n. 7
0
def test_flats_1():
    with ptr(Exception):
        Flats(instrument=random.choice(TEST_INVALID_INPUTS))
Esempio n. 8
0
def test_non_sidereal_0():
    with ptr(Exception):
        NonSidereal(telescope=random.choice(TEST_INVALID_INPUTS))
Esempio n. 9
0
def test_get_semester_0():
    with ptr(Exception):
        get_semester(random.choice(TEST_INVALID_INPUTS))
Esempio n. 10
0
def test_flats_0():
    with ptr(Exception):
        Flats(telescope=random.choice(TEST_INVALID_INPUTS))
Esempio n. 11
0
def test_user_filters_1():
    with ptr(Exception):
        user_filters(query=connect_database()().query(User),
                     request_args=random.choice(TEST_INVALID_INPUTS))
Esempio n. 12
0
def test_user_filters_0():
    with ptr(Exception):
        user_filters(query=random.choice(TEST_INVALID_INPUTS))
Esempio n. 13
0
def test_obsreq_filters_1():
    with ptr(Exception):
        obsreq_filters(query=connect_database()().query(ObsReq),
                       request_args=random.choice(TEST_INVALID_INPUTS))
Esempio n. 14
0
def test_disconnect_database_0():
    with ptr(Exception):
        disconnect_database(session=random.choice(TEST_INVALID_INPUTS))
Esempio n. 15
0
def test_connect_database_0():
    with ptr(Exception):
        connect_database(url=random.choice(TEST_INVALID_INPUTS))