Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed model tests.

  • Loading branch information...
commit 7905e6883eb17367174e78fc6a5e2cda679a4ca8 1 parent 9943648
Jukka Ojaniemi authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 whiskers/tests/test_models.py
View
16 whiskers/tests/test_models.py
@@ -40,8 +40,8 @@ def _getTargetClass(self):
from whiskers.models import Host
return Host
- def _makeOne(self, name='latitude'):
- return self._getTargetClass()(name)
+ def _makeOne(self, name='latitude', ipv4='127.0.0.1'):
+ return self._getTargetClass()(name, ipv4)
def test_constructor(self):
instance = self._makeOne()
@@ -113,13 +113,13 @@ def _getTargetClass(self):
def _makeOne(self, name='buildout'):
from whiskers.models import Host
- host = Host('localhost')
- return self._getTargetClass()(name, host)
+ host = Host('localhost', '127.0.0.1')
+ return self._getTargetClass()(name, host, 1234)
def _makeOneWithPackages(self, name, packages):
from whiskers.models import Host
- host = Host('localhost')
- return self._getTargetClass()(name, host, packages=packages)
+ host = Host('localhost', '127.0.0.1')
+ return self._getTargetClass()(name, host, 1234, packages=packages)
def _makePackage(self, name, version):
from whiskers.models import Package, Version
@@ -164,13 +164,13 @@ def _callFUT(self, engine):
def _createDummyContent(self, session):
from whiskers.models import Buildout, Package, Version, Host
- host = Host('localhost')
+ host = Host('localhost', '127.0.0.1')
version = Version('1.0')
package = Package('req-package-1', version)
packages = [Package('package1', version),
Package('package2', Version('2.0'),
requires=[package])]
- buildout = Buildout('buildout', host, packages=packages)
+ buildout = Buildout('buildout', host, 12345, packages=packages)
session.add(buildout)
session.flush()
transaction.commit()
Please sign in to comment.
Something went wrong with that request. Please try again.