Skip to content

Commit

Permalink
Fix DataUnit tests after rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pim Schellart authored and Pim Schellart committed Apr 19, 2018
1 parent 85560ea commit fcc8b25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/registries/sqlRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def addDataUnitEntry(self, dataUnitName, values):
present.
"""
dataUnit = self._schema.dataUnits[dataUnitName]
dataUnit.validateId(value)
dataUnit.validateId(values)
dataUnitTable = dataUnit.table
with self._engine.begin() as connection:
try:
Expand Down
7 changes: 0 additions & 7 deletions tests/test_dataUnit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
from lsst.daf.butler.core.dataUnit import DataUnit, DataUnitRegistry


class DataUnit(lsst.utils.tests.TestCase):
"""Tests for `DataUnit`.
"""
pass


class DataUnitRegistryTestCase(lsst.utils.tests.TestCase):
"""Tests for `DataUnitRegistry`.
"""
Expand All @@ -51,7 +45,6 @@ def testConstructor(self):
self.assertIsInstance(dataUnit, DataUnit)
for d in dataUnit.dependencies:
self.assertIsInstance(d, DataUnit)
print(dataUnitName, dataUnit.dependencies)


if __name__ == "__main__":
Expand Down

0 comments on commit fcc8b25

Please sign in to comment.