0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/pytest.ini
Harry Waye c23704b390
fix(event-search): make search case insensitive for postgres (#5880)
* chore(dev): make sure we reuse the postgres db in tests

This can be overridden with `--create-db`, see https://pytest-django.readthedocs.io/en/latest/database.html#example-work-flow-with-reuse-db-and-create-db

* refactor(test_event_definition): remove requirement for demo data team

The data takes a long time to import and is a little indirect. Removed
and replaced with some simple db creates

* fix(event-search): make search case insensitive for postgres

It already is for clickhouse which is using ILIKE.

One thing I'm not sure about is why we'd not use postgres tsv here
instead of doing our own tokenising etc. Still may be relevant for data
that we wish to keep in postgres.

Closes https://github.com/PostHog/posthog/issues/5812

Co-authored-by: Harry Waye <harry@scalexp.com>
Co-authored-by: eric <eeoneric@gmail.com>
2021-09-09 13:57:34 -04:00

8 lines
130 B
INI

[pytest]
DJANGO_SETTINGS_MODULE = posthog.settings
addopts = -p no:warnings --reuse-db
markers =
ee
skip_on_multitenancy