0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/ee
Karl-Aksel Puulmann 24de8b55e4
Run tests via pytest (#3417)
* Compile requirements-dev.txt with latest pip-tools

* Install pytest

* Avoid picking up factories as tests

* New runner

* Always set TEST env variable running tests

Some of our tests rely on it.

* Remove repetition

* Fix a broken test

* Cut down noise from bin/tests

* Rename test factory

* Fix stickiness filter

* Skip a broken test

This has been broken since numpy removal PR. Sadly tests were not
running for this submodule

* Fix import on ee

* Run ee tests properly

The django_db_setup fixture will be automatically run when running ee/
module tests.

* Make tests run on CI

* Include REDIS_URL, fix cloud

* Set TEST env variable

* Hack cloud tests to work

* Attempt at workflow fix

* Import Person model when running ee tests

This module implicitly adds hooks, so this is needed when running tests

* Respect reuse-db for clickhouse

* Add custom markers to avoid warnings

* pytest: use ch test database always

Accidentally wiped by ch setup a few times without this. Oops

* Remove repetition in tests

* Pytest: Always run migrations

Testing a state cleanup fix

* Use same DB in conftest and main code

* Pytest: autoset TEST setting without env variable

* fix broken test

Co-authored-by: eric <eeoneric@gmail.com>
2021-02-24 09:32:44 +02:00
..
api Bulk invite team members (setup section II) (#3143) 2021-02-03 13:03:22 +01:00
bin Run tests via pytest (#3417) 2021-02-24 09:32:44 +02:00
certs Publish events to Kafka for consumption (#1644) 2020-09-15 20:04:38 -07:00
clickhouse Run tests via pytest (#3417) 2021-02-24 09:32:44 +02:00
idl Delete omni_person.proto (#3014) 2021-01-21 14:13:04 +01:00
kafka_client Enable PLUGIN_SERVER_INGESTION (#3107) 2021-02-04 16:17:24 +01:00
management/commands Add handing off event ingestion to plugin server (#2898) 2021-01-21 15:39:44 +01:00
migrations Fix Master EE code (#1701) 2020-09-24 06:14:17 -04:00
models Fix REST hook firing (#2894) 2021-01-12 13:09:27 +01:00
tasks Update plugin server to 0.9.24 (#3445) 2021-02-23 18:07:06 +01:00
__init__.py Add enterprise edition and licensing (#1390) 2020-08-14 11:23:55 +02:00
apps.py Add enterprise edition and licensing (#1390) 2020-08-14 11:23:55 +02:00
conftest.py Run tests via pytest (#3417) 2021-02-24 09:32:44 +02:00
docker-compose.ch.test.yml Run tests via pytest (#3417) 2021-02-24 09:32:44 +02:00
docker-compose.ch.yml Enable PLUGIN_SERVER_INGESTION (#3107) 2021-02-04 16:17:24 +01:00
LICENSE Updated where our enterprise terms are found (#2881) 2021-01-08 12:09:27 +01:00
settings.py Enable PLUGIN_SERVER_INGESTION (#3107) 2021-02-04 16:17:24 +01:00
urls.py Debug CH queries (#2666) 2020-12-07 16:06:14 +01:00