File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def test_configure_repos_expired(self, _):
165
165
self .cli .demands .fresh_metadata = False
166
166
self .cli .demands .cacheonly = True
167
167
self .cli ._process_demands ()
168
- self .assertEqual (self .base .repos ['one' ]._sync_strategy ,
168
+ self .assertEqual (self .base .repos ['one' ]._repo . getSyncStrategy () ,
169
169
dnf .repo .SYNC_ONLY_CACHE )
170
170
171
171
Original file line number Diff line number Diff line change @@ -81,12 +81,12 @@ def test_pkgtup(self):
81
81
def test_localPkg (self ):
82
82
self .pkg .repo .basecachedir = '/cachedir'
83
83
self .pkg .repo .baseurl = ['file:///mnt/cd' ]
84
- self .assertTrue (self .pkg .repo . _local )
84
+ self .assertTrue (self .pkg ._is_local_pkg () )
85
85
self .assertEqual (self .pkg .localPkg (), '/mnt/cd/f/foo.rpm' )
86
86
self .pkg .repo .baseurl = ['http://remote' ]
87
- self .assertFalse (self .pkg .repo . _local )
87
+ self .assertFalse (self .pkg ._is_local_pkg () )
88
88
self .assertEqual (self .pkg .localPkg (),
89
- self .pkg .repo ._cachedir + '/packages/foo.rpm' )
89
+ self .pkg .repo ._repo . getCachedir () + '/packages/foo.rpm' )
90
90
91
91
def test_verify (self ):
92
92
with mock .patch .object (self .pkg , 'localPkg' ,
You can’t perform that action at this time.
0 commit comments