-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clarify PEP621 * Add extra test to validate pip-dist works with pyproject.toml * Use a newer python version on test * Add new test folder * Update pyproject * Update pyproject * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml --------- Co-authored-by: marboledacci <[email protected]>
- Loading branch information
1 parent
b99fce6
commit daafb89
Showing
8 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Example toml for integration testing - this is not used by the orb in anyway | ||
[project] | ||
authors=[ | ||
{name="TEST", email="[email protected]"} | ||
] | ||
name="test" | ||
description="none" | ||
version = "0.0.1" | ||
requires-python=">3.11" | ||
dependencies=["pytest"] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
def add_func(x,y): | ||
z = x+y | ||
return z |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from src import example | ||
|
||
import unittest | ||
|
||
class TestCase(unittest.TestCase): | ||
|
||
def test_add1(self): | ||
assert example.add_func(5,5) == 10 | ||
|
||
def test_add2(self): | ||
assert example.add_func(5,10) == 15 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
import unittest | ||
|
||
class TestCase(unittest.TestCase): | ||
|
||
def test_true(self): | ||
assert True |
This file contains 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