Skip to content

Commit

Permalink
BaseResourceWebTest: change condition for create_resource (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-kantoriz authored and leits committed Aug 22, 2017
1 parent 61e1c80 commit 6bbfdac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openregistry/api/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class BaseResourceWebTest(BaseWebTest):
resource_name = ''
initial_data = None
initial_status = None
init = False
docservice = False

# setup of Test Case that adds prefix
Expand Down Expand Up @@ -199,7 +200,7 @@ def setUp(self):
super(BaseResourceWebTest, self).setUp()
if self.docservice:
self.setUpDS()
if self.resource_name and self.initial_data:
if self.init:
self.create_resource()

def tearDown(self):
Expand Down

0 comments on commit 6bbfdac

Please sign in to comment.