0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/conftest.py
Karl-Aksel Puulmann c7c42b1a64
Groups: feature flag support for aggregating by groups (#7202)
* Tiny rename

* Minor refactor

* Test on FeatureFlagMatcher

* Add a field to feature_flag indicating if aggregating by groups

* Use f-strings

* Handle property filter building for group property

* Rename is_person_query

* Add message

* Tests for property_to_Q changes

* Add tests for groups w/ rollout

* Add comment for my_flags

* Hook up decide with groups

* New test helper for snapshotting pg queries

* Add snapshot tests for feature flags

* More is_simple_flag tests

* Add decide endpoint tests

* move conftest for ee tests to work

* Fix typo

* conftest troubles
2021-11-23 13:18:28 +02:00

8 lines
163 B
Python

import pytest
# :TRICKY: Integrate syrupy with unittest test cases
@pytest.fixture
def unittest_snapshot(request, snapshot):
request.cls.snapshot = snapshot