Skip to content

Commit

Permalink
Fix Hypothesis Settings deprecation warning
Browse files Browse the repository at this point in the history
    /home/chris/git/srt/tests/test_srt.py:19: HypothesisDeprecationWarning: Use of Settings is deprecation. The new name is settings. The behaviour is otherwise unchanged.
      Settings.register_profile('quick', Settings(max_examples=5))
  • Loading branch information
cdown committed Jan 10, 2016
1 parent 6a6e07b commit 1aef136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_srt.py
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta
from nose.tools import eq_ as eq, assert_not_equal as neq, assert_raises, \
assert_false
from hypothesis import given, Settings
from hypothesis import given, settings
import hypothesis.strategies as st
import functools
import os
Expand All @@ -16,8 +16,8 @@
from nose.tools import assert_items_equal as assert_count_equal


Settings.register_profile('quick', Settings(max_examples=5))
Settings.load_profile(os.environ.get('HYPOTHESIS_PROFILE', 'default'))
settings.register_profile('quick', settings(max_examples=5))
settings.load_profile(os.environ.get('HYPOTHESIS_PROFILE', 'default'))


TIMESTAMP_ARGS = st.tuples(
Expand Down

0 comments on commit 1aef136

Please sign in to comment.