Skip to content
Snippets Groups Projects
conftest.py 406 B
Newer Older
  • Learn to ignore specific revisions
  • import pytest
    
    from pybis import Openbis
    
    
    @pytest.yield_fixture(scope="module")
    def openbis_instance():
    
        # instance = Openbis("http://localhost:20000")
        # Test against a real instance
    
    Yves Noirjean's avatar
    Yves Noirjean committed
        instance = Openbis("http://localhost:8888", verify_certificates=False)
    
        print("\nLOGGING IN...")
    
        instance.login('admin', 'anypassword')
    
        yield instance
        instance.logout()
        print("LOGGED OUT...")