just some minor changes in the tests

This commit is contained in:
avollkopf 2023-11-01 14:52:32 +01:00
parent 268077720a
commit 550f6551ac
5 changed files with 3 additions and 8 deletions

View file

@ -40,7 +40,6 @@ class CraftBeerPiCli():
print("Setting up 1Wire") print("Setting up 1Wire")
with open('/boot/config.txt', 'r') as f: with open('/boot/config.txt', 'r') as f:
lines=f.readlines() lines=f.readlines()
#f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
lines.append("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") configtempfile=os.path.join(self.config.get_file_path(""),"config.txt")

View file

@ -80,10 +80,10 @@
"options": null, "options": null,
"source": "hidden", "source": "hidden",
"type": "string", "type": "string",
"value": "4.1.10.a1" "value": "4.2.0.a6"
}, },
"CSVLOGFILES": { "CSVLOGFILES": {
"description": "Write sensor data to csv logfiles", "description": "Write sensor data to csv logfiles (enabling requires restart)",
"name": "CSVLOGFILES", "name": "CSVLOGFILES",
"options": [ "options": [
{ {
@ -100,7 +100,7 @@
"value": "Yes" "value": "Yes"
}, },
"INFLUXDB": { "INFLUXDB": {
"description": "Write sensor data to influxdb", "description": "Write sensor data to influxdb (enabling requires restart)",
"name": "INFLUXDB", "name": "INFLUXDB",
"options": [ "options": [
{ {

View file

@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
class SensorTestCase(CraftBeerPiTestCase): class SensorTestCase(CraftBeerPiTestCase):
@unittest_run_loop
async def test_crud(self): async def test_crud(self):
data = { data = {

View file

@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
class StepTestCase(CraftBeerPiTestCase): class StepTestCase(CraftBeerPiTestCase):
@unittest_run_loop
async def test_get(self): async def test_get(self):
resp = await self.client.request("GET", "/step2") resp = await self.client.request("GET", "/step2")
@ -12,7 +11,6 @@ class StepTestCase(CraftBeerPiTestCase):
assert resp.status == 200 assert resp.status == 200
@unittest_run_loop
async def test_crud(self): async def test_crud(self):
data = { data = {
"name": "Test", "name": "Test",

View file

@ -4,7 +4,6 @@ from tests.cbpi_config_fixture import CraftBeerPiTestCase
class IndexTestCase(CraftBeerPiTestCase): class IndexTestCase(CraftBeerPiTestCase):
@unittest_run_loop
async def test_endpoints(self): async def test_endpoints(self):
# Test Index Page # Test Index Page
resp = await self.client.post(path="/system/restart") resp = await self.client.post(path="/system/restart")