4 Commits

Author SHA1 Message Date
Arpad Borsos 577c9f49f9 test: Add more testcases for previously untested code (#317)
# Tests added:

* Object cloning and overwriting keys.
* Serializing more msgpack values.
* Forcing captured events to have a uuid event_id.
* JSON escapes and surrogate parsing, also fixing a bug for that.
* Discarding events when missing consent.
* Test and fix recording errors on current session.
* Sessions with username did.
* Lots of abnormal sessions on startup.

# Bugs fixed:

* Wrong JSON decoding with surrogate pairs.
* Memory Leak parsing unmatched surrogate pairs.
* Never recorded error counts on sessions.
2020-07-06 19:43:54 +02:00
Arpad Borsos f52bf3a752 ref: Make transport opaque (#256) 2020-05-13 15:01:39 +02:00
Arpad Borsos c7589f9d31 feat: Implement sample rate to randomly throw away events (#198) 2020-03-27 11:52:19 +01:00
Arpad Borsos a940b550cc test: Move test suite into pytest (#153)
* test: Move unit tests to pytest, in preparation for integration tests

* try running python on CI

* Create a first integration test

* try making python tests work on windows

* deserialize envelope for tests

* feedback, and try running on windows

* make tests work correctly on windows

* review feedback
2020-03-02 11:20:33 +01:00