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
c9ca9c25
Kaydet (Commit)
c9ca9c25
authored
Nis 09, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* fix error with packagedb
üst
84380cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
packagedbtests.py
tests/packagedbtests.py
+2
-2
No files found.
tests/packagedbtests.py
Dosyayı görüntüle @
c9ca9c25
...
...
@@ -27,7 +27,8 @@ class PackageDBTestCase(testcase.TestCase):
self
.
spec
.
check
()
def
testAdd
(
self
):
ctx
.
repodb
.
add_repo
(
'test'
,
pisi
.
repodb
.
Repo
(
pisi
.
uri
.
URI
(
'fakerepo.xml'
))
)
if
not
ctx
.
repodb
.
has_repo
(
'test'
):
ctx
.
repodb
.
add_repo
(
'test'
,
pisi
.
repodb
.
Repo
(
pisi
.
uri
.
URI
(
'fakerepo.xml'
))
)
ctx
.
packagedb
.
add_package
(
self
.
spec
.
packages
[
0
],
'test'
)
self
.
assert_
(
ctx
.
packagedb
.
has_package
(
'popt-libs'
))
# close the database and remove lock
...
...
@@ -36,6 +37,5 @@ class PackageDBTestCase(testcase.TestCase):
def
testRemove
(
self
):
ctx
.
packagedb
.
remove_package
(
'popt-libs'
,
'test'
)
self
.
assert_
(
not
ctx
.
packagedb
.
has_package
(
'popt-libs'
,
'test'
))
self
.
pdb
.
close
()
suite
=
unittest
.
makeSuite
(
PackageDBTestCase
)
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