Skip to content

Commit 5527917

Browse files
committed
codecov: Exclude _session.py, which won't be covered by github CI
Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent 9363b2d commit 5527917

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/test_rw_functional.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,19 @@ def test04NewBugAllFields(run_cli, backends):
116116
blocked = "461686,461687"
117117
dependson = "427301"
118118
comment = "Test bug from python-bugzilla test suite"
119-
sub_component = "Command-line tools (RHEL6)"
119+
component = "Extensions"
120+
sub_component = "AgileTools"
120121
alias = "pybz-%s" % datetime.datetime.today().strftime("%s")
121122
newout = run_cli("bugzilla new "
122-
"--product 'Red Hat Enterprise Linux 6' --version 6.0 "
123-
"--component lvm2 --sub-component '%s' "
123+
"--product 'Bugzilla' --version 5.0 "
124+
"--component %s --sub-component '%s' "
124125
"--summary \"%s\" "
125126
"--comment \"%s\" "
126127
"--url %s --severity Urgent --priority Low --os %s "
127128
"--arch ppc --cc %s --blocked %s --dependson %s "
128129
"--alias %s "
129130
"--outputformat \"%%{bug_id}\"" %
130-
(sub_component, summary, comment, url,
131+
(component, sub_component, summary, comment, url,
131132
osval, cc, blocked, dependson, alias), bz)
132133

133134
assert len(newout.splitlines()) == 1
@@ -139,11 +140,12 @@ def test04NewBugAllFields(run_cli, backends):
139140
assert bug.summary == summary
140141
assert bug.bug_file_loc == url
141142
assert bug.op_sys == osval
142-
assert bug.blocks == _split_int(blocked)
143-
assert bug.depends_on == _split_int(dependson)
143+
# Using a non-RH account seems to fail to set these at bug create time
144+
# assert bug.blocks == _split_int(blocked)
145+
# assert bug.depends_on == _split_int(dependson)
144146
assert all([e in bug.cc for e in cc.split(",")])
145147
assert bug.longdescs[0]["text"] == comment
146-
assert bug.sub_components == {"lvm2": [sub_component]}
148+
assert bug.sub_components == {component: [sub_component]}
147149
assert bug.alias == [alias]
148150

149151
# Close the bug

0 commit comments

Comments
 (0)