コード例 #1
0
ファイル: conftest.py プロジェクト: nanohaikaros/ggrc-core
def dynamic_create_audit_with_control(request):
    """Create Program and Control, map Control to Program, create Audit
  under Program and dynamically make manipulations on Control (update,
  delete, ...) via REST API according to fixturename. Fixturename is indirect
  parameter that get from 'request.param' and have to be string or boolean.
  Return: lib.entities.entity.AssessmentTemplateEntity
  """
    yield (dynamic_fixtures.generate_snapshots_fixtures(request.param)
           if request.param else None)
コード例 #2
0
ファイル: conftest.py プロジェクト: zidarsk8/ggrc-core
def dynamic_create_audit_with_control(request):
  """Create Program and Control, map Control to Program, create Audit
  under Program and dynamically make manipulations on Control (update,
  delete, ...) via REST API according to fixturename. Fixturename is indirect
  parameter that get from 'request.param' and have to be string or boolean.
  Return: lib.entities.entity.AssessmentTemplateEntity
  """
  yield (dynamic_fixtures.generate_snapshots_fixtures(request.param) if
         request.param else None)
コード例 #3
0
def _snapshots_fixtures(fixturename):
    """Generate snapshot fixtures used generation of common fixtures and return
  dictionary of executed common fixtures in scope of snapshot fixtures.
  """
    return dynamic_fixtures.generate_snapshots_fixtures(fixturename)
コード例 #4
0
ファイル: conftest.py プロジェクト: Smotko/ggrc-core
def _snapshots_fixtures(fixturename):
  """Generate snapshot fixtures used generation of common fixtures and return
  dictionary of executed common fixtures in scope of snapshot fixtures.
  """
  return dynamic_fixtures.generate_snapshots_fixtures(fixturename)