Last active
June 22, 2023 04:29
-
-
Save Miuler/61926c5c7e8adc9f7d35f8e2171629d6 to your computer and use it in GitHub Desktop.
demo-poetry-pytest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "test" | |
version = "1.0.0" | |
description = "test" | |
authors = ["Hector Miuler Malpica Gallegos <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.11" | |
[tool.poetry.group.test.dependencies] | |
pytest = "^7.3.2" | |
pytest-cov = "^4.1.0" | |
pytest-xdist = { version = "^3.3.1", extras = ["psutil"] } | |
[tool.pytest.ini_options] | |
addopts = "-n auto" | |
testpaths = ["tests"] | |
[build-system] | |
requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class MyTestCase(unittest.TestCase): | |
def test_something(self): | |
print("Miuler") | |
self.assertEqual(True, True) # add assertion here | |
def test_something(): | |
print("Miuler") | |
assert True | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment