text: import assert from 'node:assert'
  import { resolve } from 'node:path'
  import { env } from 'node:process'
  import fetch from 'node-fetch'
  import { joinUrl, setup, teardown } from '../../../_testHelpers/index.js'
  
  // "Could not find 'Docker', skipping 'Docker' tests."
  const _describe = env.DOCKER_DETECTED ? describe : describe.skip
  
  _describe('Python 3.8 with Docker tests', function desc() {
    this.timeout(120000)
  
    beforeEach(() =>
      setup({
        servicePath: resolve(__dirname),
      }),
    )
  
    afterEach(() => teardown())
  
    //
    ;[
      {
        description: 'should work with python3.8 in docker container',
        expected: {
          message: 'Hello Python 3.8!',
        },
        path: '/dev/hello',
      },
    ].forEach(({ description, expected, path }) => {
      it(description, async () => {
        const url = joinUrl(env.TEST_BASE_URL, path)
        const response = await fetch(url)
        const json = await response.json()
  
        assert.deepEqual(json, expected)
      })
    })
  })
  