Enabled python 3.8 in test matrix

This commit is contained in:
Antoine Nguyen
2020-09-11 17:44:53 +02:00
parent 44d5e80aee
commit 0da574a7f4
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ python:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
env:
global:
@@ -70,5 +71,5 @@ deploy:
distributions: sdist bdist_wheel
on:
tags: true
python: '3.7'
python: '3.8'
condition: "$DB = POSTGRESQL"
@@ -19,20 +19,21 @@ class NeedDovecotUpdateTestCase(ModoTestCase):
@classmethod
def setUpTestData(cls):
"""Create test data."""
super(NeedDovecotUpdateTestCase, cls).setUpTestData()
super().setUpTestData()
factories.populate_database()
def setUp(self):
"""Initiate initial env."""
super(NeedDovecotUpdateTestCase, self).setUp()
super().setUp()
self.workdir = tempfile.mkdtemp()
self.localconfig.need_dovecot_update = False
self.localconfig.save()
def tearDown(self):
"""Reset test env."""
shutil.rmtree(self.workdir)
def test_update_dovecot_update_state_valid_form(self):
self.assertFalse(self.localconfig.need_dovecot_update)
url = reverse("core:parameters")
settings = SETTINGS_SAMPLE.copy()
response = self.client.post(url, settings, format="json")