Skip to content

Commit

Permalink
Fixing quote characters in DB store tests
Browse files Browse the repository at this point in the history
Changing to single quotes for consistency with rest of the project.
  • Loading branch information
mtlynch committed Mar 8, 2017
1 parent dd0fdc4 commit 568f8d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_db_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_store_soil_moisture(self):
store = db_store.SoilMoistureStore(mock_cursor)
store.store_soil_moisture(timestamp, soil_moisture)
mock_cursor.execute.assert_called_once_with(
"INSERT INTO soil_moisture VALUES (?, ?)", (
'INSERT INTO soil_moisture VALUES (?, ?)', (
'2016-07-23T10:51:09.928000+00:00', soil_moisture))

def test_latest_soil_moisture(self):
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_store_ambient_light(self):
store = db_store.AmbientLightStore(mock_cursor)
store.store_ambient_light(timestamp, ambient_light)
mock_cursor.execute.assert_called_once_with(
"INSERT INTO ambient_light VALUES (?, ?)", (
'INSERT INTO ambient_light VALUES (?, ?)', (
'2016-07-23T10:51:09.928000+00:00', ambient_light))

def test_retrieve_ambient_light(self):
Expand Down Expand Up @@ -118,7 +118,7 @@ def test_store_humidity(self):
store = db_store.HumidityStore(mock_cursor)
store.store_humidity(timestamp, humidity)
mock_cursor.execute.assert_called_once_with(
"INSERT INTO ambient_humidity VALUES (?, ?)",
'INSERT INTO ambient_humidity VALUES (?, ?)',
('2016-07-23T10:51:09.928000+00:00', humidity))

def test_retrieve_humidity(self):
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_store_temperature(self):
store = db_store.TemperatureStore(mock_cursor)
store.store_temperature(timestamp, temperature)
mock_cursor.execute.assert_called_once_with(
"INSERT INTO temperature VALUES (?, ?)",
'INSERT INTO temperature VALUES (?, ?)',
('2016-07-23T10:51:09.928000+00:00', temperature))

def test_retrieve_temperature(self):
Expand Down Expand Up @@ -199,7 +199,7 @@ def test_store_water_pumped(self):
store = db_store.WateringEventStore(mock_cursor)
store.store_water_pumped(timestamp, water_pumped)
mock_cursor.execute.assert_called_once_with(
"INSERT INTO watering_events VALUES (?, ?)", (
'INSERT INTO watering_events VALUES (?, ?)', (
'2016-07-23T10:51:09.928000+00:00', water_pumped))

def test_retrieve_water_pumped(self):
Expand Down

0 comments on commit 568f8d0

Please sign in to comment.