naming convention
This commit is contained in:
18
inkycal/tests/helper_functions.py
Normal file → Executable file
18
inkycal/tests/helper_functions.py
Normal file → Executable file
@@ -10,15 +10,15 @@ import sys
|
||||
from os.path import exists
|
||||
from inkycal.modules.inky_image import Inkyimage
|
||||
|
||||
preview = Inkyimage.preview
|
||||
preview = Inkyimage.preview
|
||||
merge = Inkyimage.merge
|
||||
|
||||
def get_environment():
|
||||
# Check if this is running on the Raspberry Pi
|
||||
environment = None
|
||||
envir_path = '/sys/firmware/devicetree/base/model'
|
||||
if exists(envir_path):
|
||||
with open(envir_path) as file:
|
||||
if 'Raspberry' in file.read():
|
||||
environment = 'Raspberry'
|
||||
return environment
|
||||
# Check if this is running on the Raspberry Pi
|
||||
environment = None
|
||||
envir_path = '/sys/firmware/devicetree/base/model'
|
||||
if exists(envir_path):
|
||||
with open(envir_path) as file:
|
||||
if 'Raspberry' in file.read():
|
||||
environment = 'Raspberry'
|
||||
return environment
|
||||
|
0
inkycal/tests/ical_parser_test.py
Normal file → Executable file
0
inkycal/tests/ical_parser_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_agenda_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_agenda_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_calendar_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_calendar_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_feeds_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_feeds_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_image_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_image_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_jokes_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_jokes_test.py
Normal file → Executable file
1
inkycal/tests/inkycal_slideshow_test.py
Normal file → Executable file
1
inkycal/tests/inkycal_slideshow_test.py
Normal file → Executable file
@@ -33,7 +33,6 @@ for count, url in enumerate(im_urls):
|
||||
|
||||
test_path = "tmp"
|
||||
|
||||
|
||||
tests = [
|
||||
{
|
||||
"name": "Slideshow",
|
||||
|
0
inkycal/tests/inkycal_stocks_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_stocks_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_weather_test.py
Normal file → Executable file
0
inkycal/tests/inkycal_weather_test.py
Normal file → Executable file
0
inkycal/tests/main_test.py
Normal file → Executable file
0
inkycal/tests/main_test.py
Normal file → Executable file
Reference in New Issue
Block a user