Ejemplo n.º 1
0
def test_get(tmp_path):
    path_srv_root = os.path.join(str(tmp_path), user_folder_name)
    os.environ["JUPYTER_SERVER_ROOT"] = path_srv_root
    secret = Secret(clean=True)
    secret.add('test_1', 'bar')
    assert secret.get('test_1') == 'bar'
    secret.delete('test_1')
Ejemplo n.º 2
0
def test_get(tmp_path):
    path_srv_root = os.path.join(str(tmp_path), user_folder_name)
    os.environ["JUPYTER_SERVER_ROOT"] = path_srv_root
    secret = Secret(clean=True)
    secret.add("test_1", "bar")
    assert secret.get("test_1") == "bar"
    secret.delete("test_1")