Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:cfpb/regulations-core
Browse files Browse the repository at this point in the history
mergin master to local
  • Loading branch information
grapesmoker committed Jun 29, 2015
2 parents da8c751 + b054dfb commit 9f82c2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ eggs = ${buildout:eggs}
[django]
recipe = djangorecipe
project = regcore
projectegg = regcore
settings = example_settings
test = regcore regcore_read regcore_write
eggs = ${buildout:eggs}
Expand Down
12 changes: 8 additions & 4 deletions regcore/tests/db_splitter_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@


class SplitterRegulationsTest(TestCase, dm.ReusableDMRegulations):
def setUp(self):
@patch('regcore.db.es.ElasticSearch')
def setUp(self, es):
Regulation.objects.all().delete()
self.dmr = SplitterRegulations()

Expand Down Expand Up @@ -81,7 +82,8 @@ def test_bulk_put_overwrite(self, es):


class SplitterLayersTest(TestCase, dm.ReusableDMLayers):
def setUp(self):
@patch('regcore.db.es.ElasticSearch')
def setUp(self, es):
Layer.objects.all().delete()
self.dml = SplitterLayers()

Expand Down Expand Up @@ -138,7 +140,8 @@ def test_bulk_put_overwrite(self, es):


class SplitterNoticesTest(TestCase, dm.ReusableDMNotices):
def setUp(self):
@patch('regcore.db.es.ElasticSearch')
def setUp(self, es):
Notice.objects.all().delete()
self.dmn = SplitterNotices()

Expand Down Expand Up @@ -194,7 +197,8 @@ def test_put_overwrite(self, es):


class SplitterDiffTest(TestCase, dm.ReusableDMDiff):
def setUp(self):
@patch('regcore.db.es.ElasticSearch')
def setUp(self, es):
Diff.objects.all().delete()
self.dmd = SplitterDiffs()

Expand Down

0 comments on commit 9f82c2b

Please sign in to comment.