# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):


from jenkinsflow.flow import serial
from .framework import api_select
   job: 'top_quick1'
   serial flow: [
      job: 'top_x_quick2-1'
   ]

   serial flow: [
      job: 'top_x_quick2-2'
   ]

   serial flow: [
      job: 'top_x_quick2-3'
   ]

   job: 'top_quick3'
   parallel flow: (
      serial flow: [
         job: 'top_y_z_quick4a'
      ]

      serial flow: [
         job: 'quick4b'
      ]

      job: 'top_y_quick5'
   )

]
"""

def test_prefix(api_type, capsys):

# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):


# Path: test/prefix_test.py
from jenkinsflow.flow import serial
from .framework import api_select

   job: 'top_quick1'
   serial flow: [
      job: 'top_x_quick2-1'
   ]

   serial flow: [
      job: 'top_x_quick2-2'
   ]

   serial flow: [
      job: 'top_x_quick2-3'
   ]

   job: 'top_quick3'
   parallel flow: (
      serial flow: [
         job: 'top_y_z_quick4a'
      ]

      serial flow: [
         job: 'quick4b'
      ]

      job: 'top_y_quick5'
   )

]
"""

def test_prefix(api_type, capsys):

    with api_select.api(__file__, api_type) as api: