Skip to content

Commit

Permalink
fix(test): update integration tests relatively to the samples update,…
Browse files Browse the repository at this point in the history
… update `upload binaries` step in `python-package.yml`
  • Loading branch information
maugde committed Jun 19, 2024
1 parent 5103b2d commit 984bfad
Show file tree
Hide file tree
Showing 100 changed files with 6,253 additions and 143 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
run: hatch run pyinstaller:build AntaresWebInstaller-${{ matrix.os }}

- name: Upload binaries
if: ${{ matrix.python-version == '3.8' }}
uses: actions/upload-artifact@v4
with:
name: AntaresWebInstaller-${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
SPAWN_TIMEOUT = 1
"""Timeout in seconds to wait for the server process to start."""

SERVER_TIMEOUT = 2
SERVER_TIMEOUT = 5
"""Timeout in seconds to wait for the server to be ready."""


Expand Down
7 changes: 4 additions & 3 deletions tests/integration/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ def downloaded_dir_fixture(antares_web_server_path, tmp_path: Path) -> Path:
downloaded_dir.mkdir(parents=True)

# Copy sample data
sample_dir = SAMPLES_DIR.joinpath(os.name)
sample_dir = SAMPLES_DIR.joinpath(os.name, "AntaresWeb-2.15.2")
shutil.copytree(sample_dir, downloaded_dir, dirs_exist_ok=True)

# The sample directory may contain an extra script which must be removed
downloaded_dir.joinpath("AntaresWeb/AntaresWebServer.py").unlink(missing_ok=True)
# The sample directory may contain an extra scripts that must be removed
downloaded_dir.joinpath("AntaresWeb/cli.py").unlink(missing_ok=True)
downloaded_dir.joinpath("AntaresWeb/server.py").unlink(missing_ok=True)

# Patch the `AntaresWeb/AntaresWebServer.exe` file
shutil.copy2(antares_web_server_path, downloaded_dir.joinpath("AntaresWeb"))
Expand Down
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
../../../bin/email_validator,sha256=0O7tFgGvsWIeGaXEvsYpeF61h9tydRmY1UjiP7_Przk,317
email_validator-2.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
email_validator-2.1.1.dist-info/LICENSE,sha256=ZyF5dS4QkTSj-yvdB4Cyn9t6A5dPD1hqE66tUSlWLUw,1212
email_validator-2.1.1.dist-info/METADATA,sha256=MdQTRFU1P-8zJanuHmDRDF5TaOktjmoUNLus2yjrfjs,26149
email_validator-2.1.1.dist-info/RECORD,,
email_validator-2.1.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
email_validator-2.1.1.dist-info/entry_points.txt,sha256=zRM_6bNIUSHTbNx5u6M3nK1MAguvryrc9hICC6HyrBg,66
email_validator-2.1.1.dist-info/top_level.txt,sha256=fYDOSWFZke46ut7WqdOAJjjhlpPYAaOwOwIsh3s8oWI,16
email_validator/__init__.py,sha256=PoZLrr5AblW0FfPlT-EBKwOmM07xHw7ZtfHECZLz75Q,4211
email_validator/__main__.py,sha256=SgarDcfH3W5KlcuUi6aaiQPqMdL3C-mOZVnTS6WesS4,2146
email_validator/__pycache__/__init__.cpython-38.pyc,,
email_validator/__pycache__/__main__.cpython-38.pyc,,
email_validator/__pycache__/deliverability.cpython-38.pyc,,
email_validator/__pycache__/exceptions_types.cpython-38.pyc,,
email_validator/__pycache__/rfc_constants.cpython-38.pyc,,
email_validator/__pycache__/syntax.cpython-38.pyc,,
email_validator/__pycache__/validate_email.cpython-38.pyc,,
email_validator/__pycache__/version.cpython-38.pyc,,
email_validator/deliverability.py,sha256=573d02Sx_YdlwPNW6yMRGQm5tUv3ffHUUGsShcs4mAY,5927
email_validator/exceptions_types.py,sha256=wnHFGKAfiSiaJlsOA-WgKN-MyGE9AlTJit8oEZZW8Tw,5718
email_validator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
email_validator/rfc_constants.py,sha256=lpfWHURNe8ZhxJ3VojfllTaZ8_y_VDPgMhrG3khoSA4,2721
email_validator/syntax.py,sha256=zYWYGkSODYwFApqIg-Jfqgm4XIg0Cd-tGrrvCc-bIC4,27617
email_validator/validate_email.py,sha256=GKI23zCdz30R1PY30u34zsPZCAX-T055-Lj5dygitlE,6597
email_validator/version.py,sha256=zPJIgPGcoSNiD0qme18OnYJYE3A9VVytlhO-V5DaAW0,22
../../../bin/email_validator,sha256=0O7tFgGvsWIeGaXEvsYpeF61h9tydRmY1UjiP7_Przk,317
email_validator-2.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
email_validator-2.1.1.dist-info/LICENSE,sha256=ZyF5dS4QkTSj-yvdB4Cyn9t6A5dPD1hqE66tUSlWLUw,1212
email_validator-2.1.1.dist-info/METADATA,sha256=MdQTRFU1P-8zJanuHmDRDF5TaOktjmoUNLus2yjrfjs,26149
email_validator-2.1.1.dist-info/RECORD,,
email_validator-2.1.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
email_validator-2.1.1.dist-info/entry_points.txt,sha256=zRM_6bNIUSHTbNx5u6M3nK1MAguvryrc9hICC6HyrBg,66
email_validator-2.1.1.dist-info/top_level.txt,sha256=fYDOSWFZke46ut7WqdOAJjjhlpPYAaOwOwIsh3s8oWI,16
email_validator/__init__.py,sha256=PoZLrr5AblW0FfPlT-EBKwOmM07xHw7ZtfHECZLz75Q,4211
email_validator/__main__.py,sha256=SgarDcfH3W5KlcuUi6aaiQPqMdL3C-mOZVnTS6WesS4,2146
email_validator/__pycache__/__init__.cpython-38.pyc,,
email_validator/__pycache__/__main__.cpython-38.pyc,,
email_validator/__pycache__/deliverability.cpython-38.pyc,,
email_validator/__pycache__/exceptions_types.cpython-38.pyc,,
email_validator/__pycache__/rfc_constants.cpython-38.pyc,,
email_validator/__pycache__/syntax.cpython-38.pyc,,
email_validator/__pycache__/validate_email.cpython-38.pyc,,
email_validator/__pycache__/version.cpython-38.pyc,,
email_validator/deliverability.py,sha256=573d02Sx_YdlwPNW6yMRGQm5tUv3ffHUUGsShcs4mAY,5927
email_validator/exceptions_types.py,sha256=wnHFGKAfiSiaJlsOA-WgKN-MyGE9AlTJit8oEZZW8Tw,5718
email_validator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
email_validator/rfc_constants.py,sha256=lpfWHURNe8ZhxJ3VojfllTaZ8_y_VDPgMhrG3khoSA4,2721
email_validator/syntax.py,sha256=zYWYGkSODYwFApqIg-Jfqgm4XIg0Cd-tGrrvCc-bIC4,27617
email_validator/validate_email.py,sha256=GKI23zCdz30R1PY30u34zsPZCAX-T055-Lj5dygitlE,6597
email_validator/version.py,sha256=zPJIgPGcoSNiD0qme18OnYJYE3A9VVytlhO-V5DaAW0,22
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
importlib_metadata-7.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
importlib_metadata-7.1.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
importlib_metadata-7.1.0.dist-info/METADATA,sha256=E4z5cKjydu7RGKbGvm876vG3Lxhd55OcXDhGoka7drQ,4690
importlib_metadata-7.1.0.dist-info/RECORD,,
importlib_metadata-7.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
importlib_metadata-7.1.0.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
importlib_metadata/__init__.py,sha256=lAFrEbJHarqSCdkubZebZSDAe20ES_h-ZFqVyv4bn8Y,34302
importlib_metadata/__pycache__/__init__.cpython-38.pyc,,
importlib_metadata/__pycache__/_adapters.cpython-38.pyc,,
importlib_metadata/__pycache__/_collections.cpython-38.pyc,,
importlib_metadata/__pycache__/_compat.cpython-38.pyc,,
importlib_metadata/__pycache__/_functools.cpython-38.pyc,,
importlib_metadata/__pycache__/_itertools.cpython-38.pyc,,
importlib_metadata/__pycache__/_meta.cpython-38.pyc,,
importlib_metadata/__pycache__/_text.cpython-38.pyc,,
importlib_metadata/__pycache__/diagnose.cpython-38.pyc,,
importlib_metadata/_adapters.py,sha256=jZr_CmHrl8qTGatO0yMmuOdfFExOY64G8eEYf6Cnj9k,2455
importlib_metadata/_collections.py,sha256=CJ0OTCHIjWA0ZIVS4voORAsn2R4R2cQBEtPsZEJpASY,743
importlib_metadata/_compat.py,sha256=73QKrN9KNoaZzhbX5yPCCZa-FaALwXe8TPlDR72JgBU,1314
importlib_metadata/_functools.py,sha256=PsY2-4rrKX4RVeRC1oGp1lB1pmC9eKN88_f-bD9uOoA,2895
importlib_metadata/_itertools.py,sha256=cvr_2v8BRbxcIl5x5ldfqdHjhI8Yi8s8yk50G_nm6jQ,2068
importlib_metadata/_meta.py,sha256=nxZ7C8GVlcBFAKWyVOn_dn7ot_twBcbm1NmvjIetBHI,1801
importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_metadata/compat/__pycache__/__init__.cpython-38.pyc,,
importlib_metadata/compat/__pycache__/py39.cpython-38.pyc,,
importlib_metadata/compat/py39.py,sha256=cPkMv6-0ilK-0Jw_Tkn0xYbOKJZc4WJKQHow0c2T44w,1102
importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_metadata-7.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
importlib_metadata-7.1.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
importlib_metadata-7.1.0.dist-info/METADATA,sha256=E4z5cKjydu7RGKbGvm876vG3Lxhd55OcXDhGoka7drQ,4690
importlib_metadata-7.1.0.dist-info/RECORD,,
importlib_metadata-7.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
importlib_metadata-7.1.0.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
importlib_metadata/__init__.py,sha256=lAFrEbJHarqSCdkubZebZSDAe20ES_h-ZFqVyv4bn8Y,34302
importlib_metadata/__pycache__/__init__.cpython-38.pyc,,
importlib_metadata/__pycache__/_adapters.cpython-38.pyc,,
importlib_metadata/__pycache__/_collections.cpython-38.pyc,,
importlib_metadata/__pycache__/_compat.cpython-38.pyc,,
importlib_metadata/__pycache__/_functools.cpython-38.pyc,,
importlib_metadata/__pycache__/_itertools.cpython-38.pyc,,
importlib_metadata/__pycache__/_meta.cpython-38.pyc,,
importlib_metadata/__pycache__/_text.cpython-38.pyc,,
importlib_metadata/__pycache__/diagnose.cpython-38.pyc,,
importlib_metadata/_adapters.py,sha256=jZr_CmHrl8qTGatO0yMmuOdfFExOY64G8eEYf6Cnj9k,2455
importlib_metadata/_collections.py,sha256=CJ0OTCHIjWA0ZIVS4voORAsn2R4R2cQBEtPsZEJpASY,743
importlib_metadata/_compat.py,sha256=73QKrN9KNoaZzhbX5yPCCZa-FaALwXe8TPlDR72JgBU,1314
importlib_metadata/_functools.py,sha256=PsY2-4rrKX4RVeRC1oGp1lB1pmC9eKN88_f-bD9uOoA,2895
importlib_metadata/_itertools.py,sha256=cvr_2v8BRbxcIl5x5ldfqdHjhI8Yi8s8yk50G_nm6jQ,2068
importlib_metadata/_meta.py,sha256=nxZ7C8GVlcBFAKWyVOn_dn7ot_twBcbm1NmvjIetBHI,1801
importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_metadata/compat/__pycache__/__init__.cpython-38.pyc,,
importlib_metadata/compat/__pycache__/py39.cpython-38.pyc,,
importlib_metadata/compat/py39.py,sha256=cPkMv6-0ilK-0Jw_Tkn0xYbOKJZc4WJKQHow0c2T44w,1102
importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
Loading

0 comments on commit 984bfad

Please sign in to comment.