16 lines
488 B
Python
16 lines
488 B
Python
import os
|
|
import pytest
|
|
|
|
from fedeproxy.common.gitlab import GitLab
|
|
|
|
|
|
@pytest.mark.gitlab
|
|
def test_create_project(tmpdir):
|
|
ip = os.environ.get('FEDEPROXY_IP', '0.0.0.0')
|
|
gitlab = GitLab(f'http://{ip}:8181')
|
|
gitlab.login('root', 'Wrobyak4')
|
|
gitlab.project_delete('root', 'testproject')
|
|
assert gitlab.project_get('root', 'testproject') is None
|
|
p = gitlab.project_create('root', 'testproject')
|
|
assert p['id'] == gitlab.project_create('root', 'testproject')['id']
|