mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 23:04:39 -04:00
19 lines
531 B
Python
19 lines
531 B
Python
|
|
import pytest
|
||
|
|
|
||
|
|
from certbot_integration_tests.apache_tests import context as apache_context
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture()
|
||
|
|
def context(request):
|
||
|
|
# Fixture request is a built-in pytest fixture describing current test request.
|
||
|
|
integration_test_context = apache_context.IntegrationTestsContext(request)
|
||
|
|
try:
|
||
|
|
yield integration_test_context
|
||
|
|
finally:
|
||
|
|
integration_test_context.cleanup()
|
||
|
|
|
||
|
|
|
||
|
|
def test_it(context):
|
||
|
|
command = ['-d', 'apache.{0}.wtf'.format(context.worker_id)]
|
||
|
|
context.certbot_test_apache(command)
|