/
tests.py
216 lines (155 loc) · 5.49 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
from openwisp_radius.tests.test_admin import TestAdmin as BaseTestAdmin
from openwisp_radius.tests.test_api.test_api import TestApi as BaseTestApi
from openwisp_radius.tests.test_api.test_freeradius_api import (
TestApiReject as BaseTestApiReject,
)
from openwisp_radius.tests.test_api.test_freeradius_api import (
TestAutoGroupname as BaseTestAutoGroupname,
)
from openwisp_radius.tests.test_api.test_freeradius_api import (
TestAutoGroupnameDisabled as BaseTestAutoGroupnameDisabled,
)
from openwisp_radius.tests.test_api.test_freeradius_api import (
TestFreeradiusApi as BaseTestFreeradiusApi,
)
from openwisp_radius.tests.test_api.test_freeradius_api import (
TestOgranizationRadiusSettings as BaseTestOgranizationRadiusSettings,
)
from openwisp_radius.tests.test_api.test_phone_verification import (
TestIsSmsVerificationEnabled as BaseTestIsSmsVerificationEnabled,
)
from openwisp_radius.tests.test_api.test_phone_verification import (
TestPhoneVerification as BaseTestPhoneVerification,
)
from openwisp_radius.tests.test_api.test_rest_token import (
TestApiUserToken as BaseTestApiUserToken,
)
from openwisp_radius.tests.test_api.test_rest_token import (
TestApiValidateToken as BaseTestApiValidateToken,
)
from openwisp_radius.tests.test_batch_add_users import (
TestCSVUpload as BaseTestCSVUpload,
)
from openwisp_radius.tests.test_commands import TestCommands as BaseTestCommands
from openwisp_radius.tests.test_models import TestNas as BaseTestNas
from openwisp_radius.tests.test_models import (
TestPrivateCsvFile as BaseTestPrivateCsvFile,
)
from openwisp_radius.tests.test_models import (
TestRadiusAccounting as BaseTestRadiusAccounting,
)
from openwisp_radius.tests.test_models import TestRadiusBatch as BaseTestRadiusBatch
from openwisp_radius.tests.test_models import TestRadiusCheck as BaseTestRadiusCheck
from openwisp_radius.tests.test_models import TestRadiusGroup as BaseTestRadiusGroup
from openwisp_radius.tests.test_models import (
TestRadiusPostAuth as BaseTestRadiusPostAuth,
)
from openwisp_radius.tests.test_models import TestRadiusReply as BaseTestRadiusReply
from openwisp_radius.tests.test_saml.test_views import (
TestAssertionConsumerServiceView as BaseTestAssertionConsumerServiceView,
)
from openwisp_radius.tests.test_saml.test_views import (
TestLoginView as BaseTestLoginView,
)
from openwisp_radius.tests.test_social import TestSocial as BaseTestSocial
from openwisp_radius.tests.test_token import TestPhoneToken as BaseTestPhoneToken
from openwisp_radius.tests.test_token import TestRadiusToken as BaseTestRadiusToken
from openwisp_radius.tests.test_upgrader_script import (
TestUpgradeFromDjangoFreeradius as BaseTestUpgradeFromDjangoFreeradius,
)
from openwisp_radius.tests.test_users_integration import (
TestUsersIntegration as BaseTestUsersIntegration,
)
from openwisp_radius.tests.test_utils import TestUtils as BaseTestUtils
additional_fields = [
('social_security_number', '123-45-6789'),
]
class TestAdmin(BaseTestAdmin):
app_label_users = 'sample_users'
app_label = 'sample_radius'
class TestApi(BaseTestApi):
pass
class TestFreeradiusApi(BaseTestFreeradiusApi):
pass
class TestApiReject(BaseTestApiReject):
pass
class TestAutoGroupname(BaseTestAutoGroupname):
pass
class TestAutoGroupnameDisabled(BaseTestAutoGroupnameDisabled):
pass
class TestOgranizationRadiusSettings(BaseTestOgranizationRadiusSettings):
pass
class TestPhoneVerification(BaseTestPhoneVerification):
pass
class TestIsSmsVerificationEnabled(BaseTestIsSmsVerificationEnabled):
pass
class TestCSVUpload(BaseTestCSVUpload):
pass
class TestCommands(BaseTestCommands):
pass
class TestNas(BaseTestNas):
pass
class TestUpgradeFromDjangoFreeradius(BaseTestUpgradeFromDjangoFreeradius):
pass
class TestRadiusAccounting(BaseTestRadiusAccounting):
pass
class TestRadiusCheck(BaseTestRadiusCheck):
pass
class TestRadiusReply(BaseTestRadiusReply):
pass
class TestRadiusPostAuth(BaseTestRadiusPostAuth):
pass
class TestPrivateCsvFile(BaseTestPrivateCsvFile):
pass
class TestRadiusGroup(BaseTestRadiusGroup):
pass
class TestRadiusBatch(BaseTestRadiusBatch):
pass
class TestUtils(BaseTestUtils):
pass
class TestUsersIntegration(BaseTestUsersIntegration):
app_label = 'sample_users'
_additional_user_fields = additional_fields
class TestRadiusToken(BaseTestRadiusToken):
pass
class TestPhoneToken(BaseTestPhoneToken):
pass
class TestSocial(BaseTestSocial):
pass
class TestApiUserToken(BaseTestApiUserToken):
pass
class TestApiValidateToken(BaseTestApiValidateToken):
pass
class TestAssertionConsumerServiceView(BaseTestAssertionConsumerServiceView):
pass
class TestLoginView(BaseTestLoginView):
pass
del BaseTestAdmin
del BaseTestApi
del BaseTestFreeradiusApi
del BaseTestApiReject
del BaseTestAutoGroupname
del BaseTestAutoGroupnameDisabled
del BaseTestApiUserToken
del BaseTestApiValidateToken
del BaseTestOgranizationRadiusSettings
del BaseTestPhoneVerification
del BaseTestIsSmsVerificationEnabled
del BaseTestCSVUpload
del BaseTestCommands
del BaseTestNas
del BaseTestRadiusAccounting
del BaseTestRadiusCheck
del BaseTestRadiusReply
del BaseTestRadiusPostAuth
del BaseTestPrivateCsvFile
del BaseTestRadiusGroup
del BaseTestRadiusBatch
del BaseTestSocial
del BaseTestRadiusToken
del BaseTestPhoneToken
del BaseTestUsersIntegration
del BaseTestUtils
del BaseTestUpgradeFromDjangoFreeradius
del BaseTestAssertionConsumerServiceView
del BaseTestLoginView