Emmental 3.1

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2023-10-20 16:34:05 -04:00
parent 6ebf29a632
commit 5e096fa704
2 changed files with 7 additions and 7 deletions

View File

@ -20,8 +20,8 @@ from gi.repository import Gio
from gi.repository import Adw
MAJOR_VERSION = 3
MINOR_VERSION = 0
MICRO_VERSION = 6
MINOR_VERSION = 1
MICRO_VERSION = 0
VERSION_NUMBER = f"{MAJOR_VERSION}.{MINOR_VERSION}.{MICRO_VERSION}"
VERSION_STRING = f"Emmental {VERSION_NUMBER}{gsetup.DEBUG_STR}"

View File

@ -21,10 +21,10 @@ class TestEmmental(unittest.TestCase):
def test_version(self):
"""Check that version constants have been set properly."""
self.assertEqual(emmental.MAJOR_VERSION, 3)
self.assertEqual(emmental.MINOR_VERSION, 0)
self.assertEqual(emmental.MICRO_VERSION, 6)
self.assertEqual(emmental.VERSION_NUMBER, "3.0.6")
self.assertEqual(emmental.VERSION_STRING, "Emmental 3.0.6-debug")
self.assertEqual(emmental.MINOR_VERSION, 1)
self.assertEqual(emmental.MICRO_VERSION, 0)
self.assertEqual(emmental.VERSION_NUMBER, "3.1.0")
self.assertEqual(emmental.VERSION_STRING, "Emmental 3.1.0-debug")
def test_application(self):
"""Check that the application instance is initialized properly."""
@ -63,7 +63,7 @@ class TestEmmental(unittest.TestCase):
mock_startup.assert_called()
mock_load.assert_called()
mock_add_window.assert_called_with(self.application.win)
mock_set_useragent.assert_called_with("emmental-debug", "3.0.6")
mock_set_useragent.assert_called_with("emmental-debug", "3.1.0")
@unittest.mock.patch("sys.stdout")
@unittest.mock.patch("gi.repository.Adw.Application.add_window")