7

Use correct filenames for the tests (and split some)

This commit is contained in:
Michael van Tellingen
2017-06-02 10:11:46 +02:00
parent 6c5ab9c6ae
commit 35c22cb6af
10 changed files with 371 additions and 402 deletions

View File

@ -0,0 +1,15 @@
import pytest
from tests.factories.rule import ReferralRuleFactory
from tests.factories.segment import SegmentFactory
@pytest.mark.django_db
def test_referral_rule_create():
segment = SegmentFactory(name='Referral')
referral_rule = ReferralRuleFactory(
regex_string='test.test',
segment=segment)
assert referral_rule.regex_string == 'test.test'