Exemple #1
0
def test_include_paths_from_environ(monkeypatch):
    monkeypatch.setenv('WSGI_AUTH_PATHS', '/foo/bar')
    result = wsgi_basic_auth._include_paths_from_environ()
    assert result == ['/foo/bar']
Exemple #2
0
def test_include_paths_from_environ_empty(monkeypatch):
    monkeypatch.delenv('WSGI_AUTH_PATHS', '')
    result = wsgi_basic_auth._include_paths_from_environ()
    assert result == []