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