Rename toga-test to testbed.

This commit is contained in:
Russell Keith-Magee 2022-12-05 13:48:56 +08:00
parent 94594abf11
commit 8a62cec575
No known key found for this signature in database
GPG key ID: 3D2DAB6A37BB5BC3
24 changed files with 19 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View file

@ -1,19 +1,19 @@
# This project was generated using template: https://github.com/beeware/briefcase-template and branch: v0.3.12
[tool.briefcase]
project_name = "Toga test"
bundle = "org.beeware"
project_name = "Toga Testbed"
bundle = "org.beeware.toga"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author_email = "tiberius@beeware.org"
[tool.briefcase.app.toga-test]
formal_name = "Toga test"
description = "Toga test"
icon = "src/toga_test/resources/toga_test"
[tool.briefcase.app.testbed]
formal_name = "Toga Testbed"
description = "A testbed for Toga visual tests"
icon = "src/testbed/resources/testbed"
sources = [
'src/toga_test',
'src/testbed',
]
test_sources = [
'tests',
@ -27,18 +27,18 @@ test_requires = [
]
[tool.briefcase.app.toga-test.macOS]
[tool.briefcase.app.testbed.macOS]
requires = [
'../cocoa',
'std-nslog~=1.0.0'
]
[tool.briefcase.app.toga-test.linux]
[tool.briefcase.app.testbed.linux]
requires = [
'../gtk',
]
[tool.briefcase.app.toga-test.linux.appimage]
[tool.briefcase.app.testbed.linux.appimage]
system_requires = [
'gir1.2-webkit-3.0',
'libcairo2-dev',
@ -52,12 +52,12 @@ linuxdeploy_plugins = [
'DEPLOY_GTK_VERSION=3 gtk',
]
[tool.briefcase.app.toga-test.linux.flatpak]
[tool.briefcase.app.testbed.linux.flatpak]
flatpak_runtime = 'org.gnome.Platform'
flatpak_runtime_version = '42'
flatpak_sdk = 'org.gnome.Sdk'
[tool.briefcase.app.toga-test.windows]
[tool.briefcase.app.testbed.windows]
test_sources = [
'../winforms/tests_backend',
]
@ -66,13 +66,13 @@ requires = [
]
# Mobile deployments
[tool.briefcase.app.toga-test.iOS]
[tool.briefcase.app.testbed.iOS]
requires = [
'../iOS',
'std-nslog~=1.0.0'
]
[tool.briefcase.app.toga-test.android]
[tool.briefcase.app.testbed.android]
test_sources = [
'../android/tests_backend',
]
@ -83,7 +83,7 @@ requires = [
# TODO: replace with extractPackages
build_gradle_extra_content = "android.defaultConfig.python.pyc.src false"
[tool.briefcase.app.toga-test.web]
[tool.briefcase.app.testbed.web]
requires = [
'../web'
]

View file

@ -1,4 +1,4 @@
from toga_test.app import main
from testbed.app import main
if __name__ == "__main__":
main().main_loop()

View file

@ -1,7 +1,7 @@
import toga
class TogaTest(toga.App):
class Testbed(toga.App):
def startup(self):
self.main_window = toga.MainWindow(title=self.formal_name)
self.main_window.content = toga.Box()
@ -9,4 +9,4 @@ class TogaTest(toga.App):
def main():
return TogaTest(app_name="toga_test")
return Testbed(app_name="testbed")

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -6,7 +6,7 @@ from threading import Thread
import pytest
import tests
from toga_test.app import main
from testbed.app import main
def run_tests(app):