Skip to content

Commit 8d69ab0

Browse files
authored
chore: single source for release-please release type (#106)
* chore: single source for release-please release type * chore: attempt fixing flaky test again * chore: reset changelog to 3.7.0
1 parent 840bc0e commit 8d69ab0

7 files changed

+5
-61
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ jobs:
1616
- uses: googleapis/release-please-action@v4
1717
with:
1818
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
19-
release-type: simple

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: mypy
66
args: [--strict]
77
additional_dependencies:
8-
[freezegun, pydantic, pytest, pytest_mock, types-requests, flagsmith-flag-engine, responses, sseclient-py]
8+
[pydantic, pytest, pytest_mock, types-requests, flagsmith-flag-engine, responses, sseclient-py]
99
- repo: https://github.com/PyCQA/isort
1010
rev: 5.13.2
1111
hooks:

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.8.0"
2+
".": "3.7.0"
33
}

CHANGELOG.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
# Changelog
22

3-
<a name="v3.7.0"></a>
4-
5-
## [3.8.0](https://github.com/Flagsmith/flagsmith-python-client/compare/v3.7.0...v3.8.0) (2024-08-12)
6-
7-
### Features
8-
9-
- Support transient identities and traits ([#93](https://github.com/Flagsmith/flagsmith-python-client/issues/93))
10-
([0a11db5](https://github.com/Flagsmith/flagsmith-python-client/commit/0a11db5a1010c177856716e6b90292651fa5889b))
11-
12-
### Bug Fixes
13-
14-
- Offline handler not used as fallback for local evaluation mode during init
15-
([#100](https://github.com/Flagsmith/flagsmith-python-client/issues/100))
16-
([6f6d595](https://github.com/Flagsmith/flagsmith-python-client/commit/6f6d5950bc3a6befd953dc1a24ef497a4a018c7b))
17-
183
## [v3.7.0](https://github.com/Flagsmith/flagsmith-python-client/releases/tag/v3.7.0) - 17 Jul 2024
194

205
### What's Changed

poetry.lock

Lines changed: 1 addition & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pytest-mock = "^3.6.1"
2727
pre-commit = "^2.17.0"
2828
responses = "^0.24.1"
2929
types-requests = "^2.32"
30-
freezegun = "^1.5.1"
3130

3231
[tool.mypy]
3332
plugins = ["pydantic.mypy"]

tests/test_flagsmith.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import typing
44
import uuid
55

6-
import freezegun
76
import pytest
87
import requests
98
import responses
@@ -528,7 +527,6 @@ def test_flagsmith_uses_offline_handler_if_set_and_no_api_response(
528527

529528

530529
@responses.activate()
531-
@freezegun.freeze_time()
532530
def test_offline_mode__local_evaluation__correct_fallback(
533531
mocker: MockerFixture,
534532
environment_model: EnvironmentModel,
@@ -539,6 +537,8 @@ def test_offline_mode__local_evaluation__correct_fallback(
539537
mock_offline_handler = mocker.MagicMock(spec=BaseOfflineHandler)
540538
mock_offline_handler.get_environment.return_value = environment_model
541539

540+
mocker.patch("flagsmith.flagsmith.EnvironmentDataPollingManager")
541+
542542
responses.get(api_url + "environment-document/", status=500)
543543

544544
flagsmith = Flagsmith(

0 commit comments

Comments
 (0)