Add TOML support

This commit is contained in:
Jonatan Heyman
2023-12-26 01:31:36 +01:00
parent 475f3465fe
commit 60caac45ab
6 changed files with 27 additions and 2 deletions

View File

@ -37,3 +37,19 @@ print('The solution are {0} and {1}'.format(sol1,sol2))
`)
await expect(page.locator("css=.status .status-block.lang")).toHaveText("Python (auto)")
})
test("TOML detection", async ({ page }) => {
await page.locator("body").pressSequentially(`
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "locust"
license = { text = "MIT" }
description = "Developer friendly load testing framework"
dynamic = ["version"]
requires-python = ">=3.8"
`)
await expect(page.locator("css=.status .status-block.lang")).toHaveText("TOML (auto)")
})