2
2
import os
3
3
from unittest import mock
4
4
5
- from allauth .socialaccount .models import SocialAccount
6
5
from django .contrib .auth .models import User
7
6
from django .test import TestCase
8
7
from django .utils import timezone
21
20
from readthedocs .doc_builder .environments import LocalBuildEnvironment
22
21
from readthedocs .doc_builder .exceptions import DuplicatedBuildError
23
22
from readthedocs .doc_builder .python_environments import Virtualenv
24
- from readthedocs .oauth .models import RemoteRepository
25
23
from readthedocs .projects .models import EnvironmentVariable , Feature , Project
26
24
from readthedocs .projects .tasks import UpdateDocsTaskStep
27
25
from readthedocs .rtd_tests .tests .test_config_integration import create_load
@@ -363,7 +361,7 @@ def test_get_env_vars(self):
363
361
),
364
362
'TOKEN' : 'a1b2c3' ,
365
363
}
366
- self .assertEqual (task .get_env_vars (), env )
364
+ self .assertEqual (task .get_build_env_vars (), env )
367
365
368
366
# mock this object to make sure that we are in a conda env
369
367
task .config = mock .Mock (conda = True )
@@ -377,7 +375,7 @@ def test_get_env_vars(self):
377
375
'bin' ,
378
376
),
379
377
})
380
- self .assertEqual (task .get_env_vars (), env )
378
+ self .assertEqual (task .get_build_env_vars (), env )
381
379
382
380
383
381
class BuildModelTests (TestCase ):
0 commit comments