mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-10-31 20:24:30 +01:00 
			
		
		
		
	Fix CI
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| image: python:3.6 | image: python:3.8 | ||||||
|  |  | ||||||
| stages: | stages: | ||||||
|   - test |   - test | ||||||
| @@ -21,6 +21,11 @@ python37: | |||||||
|   stage: test |   stage: test | ||||||
|   script: tox -e py37 |   script: tox -e py37 | ||||||
|  |  | ||||||
|  | python38: | ||||||
|  |   image: python:3.8 | ||||||
|  |   stage: test | ||||||
|  |   script: tox -e py37 | ||||||
|  |  | ||||||
| linters: | linters: | ||||||
|   stage: test |   stage: test | ||||||
|   script: tox -e linters |   script: tox -e linters | ||||||
|   | |||||||
| @@ -198,7 +198,7 @@ class MediaAdminForm(ModelForm): | |||||||
|             from django.core.exceptions import ValidationError |             from django.core.exceptions import ValidationError | ||||||
|             try: |             try: | ||||||
|                 # We don't want to check a field when we enter an ISBN. |                 # We don't want to check a field when we enter an ISBN. | ||||||
|                 if "isbn" not in self.request.POST \ |                 if "_isbn" not in self.request.POST \ | ||||||
|                         or not self.cleaned_data.get('isbn'): |                         or not self.cleaned_data.get('isbn'): | ||||||
|                     value = field.clean(value) |                     value = field.clean(value) | ||||||
|                 self.cleaned_data[name] = value |                 self.cleaned_data[name] = value | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ class TemplateTests(TestCase): | |||||||
|  |  | ||||||
|     def test_media_isbn_download(self): |     def test_media_isbn_download(self): | ||||||
|         data = { |         data = { | ||||||
|             '_continue': True, |             '_isbn': True, | ||||||
|             'isbn': "0316358525", |             'isbn': "0316358525", | ||||||
|         } |         } | ||||||
|         response = self.client.post(reverse( |         response = self.client.post(reverse( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user