def teardown():
    try:
        from metadatastore.utils.testing import mds_teardown
    except ImportError:
        pass  # test will be skipped
    else:
        mds_teardown()
def teardown():
    try:
        from metadatastore.utils.testing import mds_teardown
    except ImportError:
        pass  # test will be skipped
    else:
        mds_teardown()
def test_connect_mds_mongodb():
    try:
        import metadatastore
    except ImportError:
        raise nose.SkipTest
    from metadatastore.utils.testing import mds_setup, mds_teardown
    from metadatastore.commands import insert_beamline_config
    try:
        mds_setup()
        # Until we insert something, the db is not actually created.
        bc = insert_beamline_config({}, time=0., uid=str(uuid.uuid4()))
        connect_mds_mongodb()
    except:
        raise
    finally:
        mds_teardown()
Beispiel #4
0
def test_connect_mds_mongodb():
    try:
        import metadatastore
    except ImportError:
        raise nose.SkipTest
    from metadatastore.utils.testing import mds_setup, mds_teardown
    from metadatastore.commands import insert_beamline_config
    try:
        mds_setup()
        # Until we insert something, the db is not actually created.
        bc = insert_beamline_config({}, time=0., uid=str(uuid.uuid4()))
        connect_mds_mongodb()
    except:
        raise
    finally:
        mds_teardown()
def test_connect_mds_mongodb():
    try:
        from metadatastore.utils.testing import mds_setup, mds_teardown
        import metadatastore.commands as mdsc
    except ImportError:
        raise nose.SkipTest

    try:
        mds_setup()
        # Until we insert something, the db is not actually created.

        mdsc.insert_run_start(scan_id=3022013,
                              beamline_id='testbed',
                              owner='tester',
                              group='awesome-devs',
                              project='Nikea',
                              time=time.time(),
                              uid=str(uuid.uuid4()))
        connect_mds_mongodb()

    except:
        raise
    finally:
        mds_teardown()
def test_connect_mds_mongodb():
    try:
        from metadatastore.utils.testing import mds_setup, mds_teardown
        import metadatastore.commands as mdsc
    except ImportError:
        raise nose.SkipTest

    try:
        mds_setup()
        # Until we insert something, the db is not actually created.

        mdsc.insert_run_start(scan_id=3022013,
                             beamline_id='testbed',
                             owner='tester',
                             group='awesome-devs',
                             project='Nikea',
                             time=time.time(),
                             uid=str(uuid.uuid4()))
        connect_mds_mongodb()

    except:
        raise
    finally:
        mds_teardown()
Beispiel #7
0
def teardown():
    fs_teardown()
    mds_teardown()
Beispiel #8
0
def teardown():
    mds_teardown()
    fs_teardown()
Beispiel #9
0
def teardown():
    pass
    mds_teardown()
def teardown():
    mds_teardown()