-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from PnX-SI/develop
Develop > Master / 1.11.3
- Loading branch information
Showing
13 changed files
with
318 additions
and
204 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.11.2 | ||
1.11.3 |
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
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
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,25 @@ | ||
import pytest | ||
from flask import url_for | ||
|
||
from .fixtures import noms_example, attribut_example | ||
|
||
|
||
@pytest.mark.usefixtures("client_class", "temporary_transaction") | ||
class TestAPIBibNoms: | ||
def test_getOne_bibtaxonsInfo(self, noms_example, attribut_example): | ||
resp = self.client.get( | ||
url_for( | ||
"bib_noms.getOne_bibtaxonsInfo", | ||
cd_nom=67111, | ||
id_attribut=attribut_example.id_attribut, | ||
) | ||
) | ||
assert resp.status_code == 200 | ||
data = resp.json | ||
assert "attributs" in data | ||
attr = next( | ||
attr | ||
for attr in data["attributs"] | ||
if attr["id_attribut"] == attribut_example.id_attribut | ||
) | ||
assert attr["valeur_attribut"] == "migrateur" |
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
Submodule UsersHub-authentification-module
updated
5 files
+2 −1 | .github/workflows/pytest.yml | |
+147 −105 | src/pypnusershub/db/models.py | |
+26 −51 | src/pypnusershub/routes.py | |
+50 −4 | src/pypnusershub/tests/fixtures.py | |
+5 −3 | src/pypnusershub/tests/test_utilisateurs.py |
Oops, something went wrong.