Skip to content

Commit

Permalink
chore: single source for release-please release type (#106)
Browse files Browse the repository at this point in the history
* chore: single source for release-please release type

* chore: attempt fixing flaky test again

* chore: reset changelog to 3.7.0
  • Loading branch information
khvn26 authored Aug 12, 2024
1 parent 840bc0e commit 8d69ab0
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 61 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ jobs:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
release-type: simple
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: mypy
args: [--strict]
additional_dependencies:
[freezegun, pydantic, pytest, pytest_mock, types-requests, flagsmith-flag-engine, responses, sseclient-py]
[pydantic, pytest, pytest_mock, types-requests, flagsmith-flag-engine, responses, sseclient-py]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.8.0"
".": "3.7.0"
}
15 changes: 0 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# Changelog

<a name="v3.7.0"></a>

## [3.8.0](https://github.com/Flagsmith/flagsmith-python-client/compare/v3.7.0...v3.8.0) (2024-08-12)

### Features

- Support transient identities and traits ([#93](https://github.com/Flagsmith/flagsmith-python-client/issues/93))
([0a11db5](https://github.com/Flagsmith/flagsmith-python-client/commit/0a11db5a1010c177856716e6b90292651fa5889b))

### Bug Fixes

- Offline handler not used as fallback for local evaluation mode during init
([#100](https://github.com/Flagsmith/flagsmith-python-client/issues/100))
([6f6d595](https://github.com/Flagsmith/flagsmith-python-client/commit/6f6d5950bc3a6befd953dc1a24ef497a4a018c7b))

## [v3.7.0](https://github.com/Flagsmith/flagsmith-python-client/releases/tag/v3.7.0) - 17 Jul 2024

### What's Changed
Expand Down
41 changes: 1 addition & 40 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pytest-mock = "^3.6.1"
pre-commit = "^2.17.0"
responses = "^0.24.1"
types-requests = "^2.32"
freezegun = "^1.5.1"

[tool.mypy]
plugins = ["pydantic.mypy"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_flagsmith.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import typing
import uuid

import freezegun
import pytest
import requests
import responses
Expand Down Expand Up @@ -528,7 +527,6 @@ def test_flagsmith_uses_offline_handler_if_set_and_no_api_response(


@responses.activate()
@freezegun.freeze_time()
def test_offline_mode__local_evaluation__correct_fallback(
mocker: MockerFixture,
environment_model: EnvironmentModel,
Expand All @@ -539,6 +537,8 @@ def test_offline_mode__local_evaluation__correct_fallback(
mock_offline_handler = mocker.MagicMock(spec=BaseOfflineHandler)
mock_offline_handler.get_environment.return_value = environment_model

mocker.patch("flagsmith.flagsmith.EnvironmentDataPollingManager")

responses.get(api_url + "environment-document/", status=500)

flagsmith = Flagsmith(
Expand Down

0 comments on commit 8d69ab0

Please sign in to comment.