Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/test_client_macos_nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: >-
python -m pytest -x
-m object_retrieval -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
object_removal:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -62,7 +62,7 @@ jobs:
run: >-
python -m pytest -x
-m object_removal -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
dispatch_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -86,7 +86,7 @@ jobs:
run: >-
python -m pytest -x
-m dispatch -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_online:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -110,8 +110,8 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m online -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-m "online and not api" -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_offline:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -135,7 +135,7 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m offline -c /dev/null -p no:warnings
-m "offline and not api" -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
config_tests:
runs-on: ubuntu-latest
Expand All @@ -160,7 +160,7 @@ jobs:
run: >-
python -m pytest -x
-m config -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
executor_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -232,4 +232,4 @@ jobs:
run: >-
python -m pytest -x
-m local -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
16 changes: 8 additions & 8 deletions .github/workflows/test_client_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: >-
python -m pytest -x
-m object_retrieval -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
object_removal:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -67,7 +67,7 @@ jobs:
run: >-
python -m pytest -x
-m object_removal -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
dispatch_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -91,7 +91,7 @@ jobs:
run: >-
python -m pytest -x
-m dispatch -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_online:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -115,8 +115,8 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m online -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-m "online and not api" -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_offline:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -140,7 +140,7 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m offline -c /dev/null -p no:warnings
-m "offline and not api" -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
config_tests:
runs-on: ubuntu-latest
Expand All @@ -165,7 +165,7 @@ jobs:
run: >-
python -m pytest -x
-m config -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
executor_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -237,4 +237,4 @@ jobs:
run: >-
python -m pytest -x
-m local -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
20 changes: 10 additions & 10 deletions .github/workflows/test_client_ubuntu_nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: >-
python -m pytest -x
-m object_retrieval -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
object_removal:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -65,7 +65,7 @@ jobs:
run: >-
python -m pytest -x
-m object_removal -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
dispatch_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -89,8 +89,8 @@ jobs:
run: >-
python -m pytest -x
-m dispatch -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_online:
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
online_online:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -113,9 +113,9 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m online -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_offline:
-m "online and not api" -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
offline_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -138,7 +138,7 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m offline -c /dev/null -p no:warnings
-m "offline and not api" -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
config_tests:
runs-on: ubuntu-latest
Expand All @@ -163,7 +163,7 @@ jobs:
run: >-
python -m pytest -x
-m config -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
executor_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -235,4 +235,4 @@ jobs:
run: >-
python -m pytest -x
-m local -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
18 changes: 9 additions & 9 deletions .github/workflows/test_client_windows_nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m object_retrieval -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-m 'object_retrieval and not unix' -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
object_removal:
runs-on: windows-latest
Expand All @@ -63,7 +63,7 @@ jobs:
run: >-
python -m pytest -x
-m 'object_removal and not unix' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
dispatch_tests:
runs-on: windows-latest
Expand All @@ -88,7 +88,7 @@ jobs:
run: >-
python -m pytest -x
-m 'dispatch and not unix' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
run_tests_online:
runs-on: windows-latest
Expand All @@ -113,8 +113,8 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m 'online and not unix' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-m run -m 'online and not unix and not api' -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
run_tests_offline:
runs-on: windows-latest
Expand All @@ -139,7 +139,7 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m 'offline and not unix' -c /dev/null -p no:warnings
-m run -m 'offline and not unix and not api' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
config_tests:
Expand All @@ -165,7 +165,7 @@ jobs:
run: >-
python -m pytest -x
-m 'config and not unix' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
executor_tests:
runs-on: windows-latest
Expand Down Expand Up @@ -240,5 +240,5 @@ jobs:
run: >-
python -m pytest -x
-m 'local and not unix' -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
shell: pwsh
18 changes: 9 additions & 9 deletions .github/workflows/test_multiple_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: >-
python -m pytest -x
-m object_retrieval -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
object_removal:
runs-on: ubuntu-latest
name: Object Removal Tests
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
run: >-
python -m pytest -x
-m object_removal -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
dispatch_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
run: >-
python -m pytest -x
-m dispatch -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_online:
name: Run Tests Online
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,8 +133,8 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m online -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-m "online and not api" -c /dev/null -p no:warnings
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
run_tests_offline:
runs-on: ubuntu-latest
name: Run Tests Offline
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: >-
python -m pytest -x
-m run -m offline -c /dev/null -p no:warnings
-m "offline and not api" -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
config_tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
run: >-
python -m pytest -x
-m config -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
executor_tests:
runs-on: ubuntu-latest
name: Executor Tests
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
run: >-
python -m pytest -x
-m api -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
local_tests:
runs-on: ubuntu-latest
name: Local Tests
Expand Down Expand Up @@ -280,4 +280,4 @@ jobs:
run: >-
python -m pytest -x
-m local -c /dev/null -p no:warnings
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@ offline/
Vagrantfile

.sourcery*

# Modules
!simvue/offline/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Unreleased

- Refactored sender functionality introducing new `Sender` class.

## [v2.2.2](https://github.com/simvue-io/client/releases/tag/v2.2.2) - 2025-10-14

- Enforced use of UTC for all datetime recording.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "simvue"
version = "2.2.2"
version = "2.3.0"
description = "Simulation tracking and monitoring"
authors = [
{name = "Simvue Development Team", email = "info@simvue.io"}
Expand Down
1 change: 1 addition & 0 deletions simvue/api/objects/administrator/tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def new(
max_runs: int = 0,
max_data_volume: int = 0,
offline: bool = False,
**_,
) -> Self:
"""Create a new tenant on the Simvue server.

Expand Down
9 changes: 1 addition & 8 deletions simvue/api/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from simvue.utilities import staging_merger
from simvue.config.user import SimvueConfiguration
from simvue.exception import ObjectNotFoundError
from simvue.version import __version__
from simvue.api.request import (
get as sv_get,
get_paginated,
Expand Down Expand Up @@ -232,13 +231,7 @@ def __init__(
)

self._headers: dict[str, str] = (
{
"Authorization": f"Bearer {self._user_config.server.token.get_secret_value()}",
"User-Agent": _user_agent or f"Simvue Python client {__version__}",
"Accept-Encoding": "gzip",
}
if not self._offline
else {}
self._user_config.headers if not self._offline else {}
)

self._params: dict[str, str] = {}
Expand Down
Loading
Loading