Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
10d8d803
Kaydet (Commit)
10d8d803
authored
Haz 25, 2008
tarafından
Beyza Ermiş
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace testleri yazildi
üst
629d16f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
replacetest.py
tests/replacetest.py
+20
-0
runtests.py
tests/runtests.py
+1
-0
No files found.
tests/replacetest.py
0 → 100644
Dosyayı görüntüle @
10d8d803
import
unittest
import
pisi.replace
import
pisi.relation
class
ReplaceTestCase
(
unittest
.
TestCase
):
def
testInstalledPackageReplaced
(
self
):
pisi
.
api
.
install
([
"ethtool"
])
relation
=
pisi
.
relation
.
Relation
()
relation
.
package
=
"ethtool"
relation
.
version
=
"6"
relation
.
release
=
"1"
replace
=
pisi
.
replace
.
Replace
(
relation
)
replace
.
package
=
"zlib"
assert
pisi
.
replace
.
installed_package_replaced
(
replace
)
repinfo
=
pisi
.
replace
.
Replace
(
relation
)
repinfo
.
package
=
"ctorrent"
assert
not
pisi
.
replace
.
installed_package_replaced
(
repinfo
)
pisi
.
api
.
remove
([
"ethtool"
])
tests/runtests.py
Dosyayı görüntüle @
10d8d803
...
...
@@ -24,6 +24,7 @@ from database.itembyrepotest import ItemByRepoTestCase
from
versiontest
import
VersionTestCase
from
mirrorstest
import
MirrorsTestCase
from
relationtest
import
RelationTestCase
from
replacetest
import
ReplaceTestCase
suite
=
unittest
.
TestSuite
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment