adinhodovic / django-google-optimize

Django-google-optimize is a Django application designed to make running server side Google Optimize A/B tests easy.
https://hodovi.cc/blog/django-b-testing-google-optimize/
MIT License
40 stars 6 forks source link

Add context manager to force a specific variant in tests #34

Closed danihodovic closed 4 years ago

danihodovic commented 4 years ago

https://github.com/adinhodovic/django-google-optimize/tree/add-context-manager#forcing-a-specific-experiment-variant-in-tests

codecov[bot] commented 4 years ago

Codecov Report

Merging #34 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #34   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          70     79    +9     
  Branches       11     12    +1     
=====================================
+ Hits           70     79    +9
Flag Coverage Δ
#unittests 100% <100%> (ø) :arrow_up:
Impacted Files Coverage Δ
django_google_optimize/middleware.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cdf1790...8f373e4. Read the comment docs.

danihodovic commented 4 years ago

I also added pudb, ptipython and ptpython for local dev debugging.