adapted tests
This commit is contained in:
@@ -11,7 +11,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,200],
|
"size": [400,200],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwr",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -23,7 +23,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [800,500],
|
"size": [800,500],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": False,
|
"palette": "bwy",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -35,7 +35,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bw",
|
||||||
"autoflip": False,
|
"autoflip": False,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -47,7 +47,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwr",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -59,7 +59,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwy",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "horizontal",
|
"orientation": "horizontal",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -71,7 +71,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [500, 800],
|
"size": [500, 800],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bw",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 0, "padding_y": 0, "fontsize": 12, "language": "en"
|
"padding_x": 0, "padding_y": 0, "fontsize": 12, "language": "en"
|
||||||
@@ -83,7 +83,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [500, 800],
|
"size": [500, 800],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwr",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 20, "padding_y": 20, "fontsize": 12, "language": "en"
|
"padding_x": 20, "padding_y": 20, "fontsize": 12, "language": "en"
|
||||||
|
@@ -11,7 +11,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,200],
|
"size": [400,200],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwy",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -23,7 +23,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [800,500],
|
"size": [800,500],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": False,
|
"palette": "bw",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -35,7 +35,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwr",
|
||||||
"autoflip": False,
|
"autoflip": False,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -47,7 +47,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwy",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -59,7 +59,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [400,100],
|
"size": [400,100],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwy",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "horizontal",
|
"orientation": "horizontal",
|
||||||
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
"padding_x": 10, "padding_y": 10, "fontsize": 12, "language": "en"
|
||||||
@@ -71,7 +71,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [500, 800],
|
"size": [500, 800],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bw",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 0, "padding_y": 0, "fontsize": 12, "language": "en"
|
"padding_x": 0, "padding_y": 0, "fontsize": 12, "language": "en"
|
||||||
@@ -83,7 +83,7 @@ tests = [
|
|||||||
"config": {
|
"config": {
|
||||||
"size": [500, 800],
|
"size": [500, 800],
|
||||||
"path": test_path,
|
"path": test_path,
|
||||||
"use_colour": True,
|
"palette": "bwr",
|
||||||
"autoflip": True,
|
"autoflip": True,
|
||||||
"orientation": "vertical",
|
"orientation": "vertical",
|
||||||
"padding_x": 20, "padding_y": 20, "fontsize": 12, "language": "en"
|
"padding_x": 20, "padding_y": 20, "fontsize": 12, "language": "en"
|
||||||
@@ -104,5 +104,13 @@ class module_test(unittest.TestCase):
|
|||||||
module.generate_image()
|
module.generate_image()
|
||||||
print('OK')
|
print('OK')
|
||||||
|
|
||||||
|
def test_switch_to_next_image(self):
|
||||||
|
print(f'testing switching to next images..')
|
||||||
|
module = Module(tests[0])
|
||||||
|
module.generate_image()
|
||||||
|
module.generate_image()
|
||||||
|
module.generate_image()
|
||||||
|
print('OK')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Reference in New Issue
Block a user