File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,20 @@ language: python
2
2
3
3
python :
4
4
- " 2.7"
5
- - " 3.5"
6
5
- " 3.6"
6
+ - " 3.7"
7
7
8
8
env :
9
- - DJANGO_VERSION=1.8.18
10
- - DJANGO_VERSION=1.11.6
9
+ - DJANGO_VERSION=1.11
10
+ - DJANGO_VERSION=2.2.9
11
+ - DJANGO_VERSION=3.0.2
12
+
13
+ matrix :
14
+ exclude :
15
+ - python : " 2.7"
16
+ env : DJANGO_VERSION=3.0.2
17
+ - python : " 2.7"
18
+ env : DJANGO_VERSION=2.2.9
11
19
12
20
install :
13
21
- " npm install -g npm"
Original file line number Diff line number Diff line change 1
1
import datetime
2
2
import json
3
3
import os
4
+ import sys
4
5
import unittest
5
- from django .utils import timezone , six
6
+ from django .utils import timezone
6
7
from react_render .django .render import render_component , RenderedComponent
7
8
from react_render .exceptions import ComponentRenderingError , ComponentSourceFileNotFound
8
9
@@ -70,7 +71,7 @@ def test_render_component_returns_a_rendered_component(self):
70
71
self .assertIsInstance (component , RenderedComponent )
71
72
self .assertEqual (component .output , '<span>Hello world!</span>' )
72
73
self .assertEqual (component .output , str (component ))
73
- if six . PY2 :
74
+ if sys . version_info [ 0 ] < 3 :
74
75
self .assertEqual (component .output , unicode (component ))
75
76
76
77
def test_can_get_a_components_serialized_props (self ):
You can’t perform that action at this time.
0 commit comments