mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-24 16:08:11 +01:00
just some minor changes in the tests
This commit is contained in:
parent
268077720a
commit
550f6551ac
5 changed files with 3 additions and 8 deletions
|
@ -40,7 +40,6 @@ class CraftBeerPiCli():
|
|||
print("Setting up 1Wire")
|
||||
with open('/boot/config.txt', 'r') as f:
|
||||
lines=f.readlines()
|
||||
#f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
|
||||
lines.append("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
|
||||
|
||||
configtempfile=os.path.join(self.config.get_file_path(""),"config.txt")
|
||||
|
|
|
@ -80,10 +80,10 @@
|
|||
"options": null,
|
||||
"source": "hidden",
|
||||
"type": "string",
|
||||
"value": "4.1.10.a1"
|
||||
"value": "4.2.0.a6"
|
||||
},
|
||||
"CSVLOGFILES": {
|
||||
"description": "Write sensor data to csv logfiles",
|
||||
"description": "Write sensor data to csv logfiles (enabling requires restart)",
|
||||
"name": "CSVLOGFILES",
|
||||
"options": [
|
||||
{
|
||||
|
@ -100,7 +100,7 @@
|
|||
"value": "Yes"
|
||||
},
|
||||
"INFLUXDB": {
|
||||
"description": "Write sensor data to influxdb",
|
||||
"description": "Write sensor data to influxdb (enabling requires restart)",
|
||||
"name": "INFLUXDB",
|
||||
"options": [
|
||||
{
|
||||
|
|
|
@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
|
|||
|
||||
class SensorTestCase(CraftBeerPiTestCase):
|
||||
|
||||
@unittest_run_loop
|
||||
async def test_crud(self):
|
||||
|
||||
data = {
|
||||
|
|
|
@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
|
|||
|
||||
class StepTestCase(CraftBeerPiTestCase):
|
||||
|
||||
@unittest_run_loop
|
||||
async def test_get(self):
|
||||
|
||||
resp = await self.client.request("GET", "/step2")
|
||||
|
@ -12,7 +11,6 @@ class StepTestCase(CraftBeerPiTestCase):
|
|||
assert resp.status == 200
|
||||
|
||||
|
||||
@unittest_run_loop
|
||||
async def test_crud(self):
|
||||
data = {
|
||||
"name": "Test",
|
||||
|
|
|
@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
|
|||
|
||||
class IndexTestCase(CraftBeerPiTestCase):
|
||||
|
||||
@unittest_run_loop
|
||||
async def test_endpoints(self):
|
||||
# Test Index Page
|
||||
resp = await self.client.post(path="/system/restart")
|
||||
|
|
Loading…
Reference in a new issue