Skip to content

Commit 2e7dafd

Browse files
author
Ilija Vukotic
committed
excluded test
1 parent 216545e commit 2e7dafd

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

tests/servicex_did_finder_lib/test_servicex_did.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,42 @@ def test_version():
99
assert __version__ == '1.1.1b1'
1010

1111

12-
@responses.activate
13-
def test_put_file_add():
14-
responses.add(responses.PUT, 'http://servicex.org/files', status=206)
15-
sx = ServiceXAdapter("http://servicex.org")
16-
sx.put_file_add({
17-
'paths': ['root://foo.bar.ROOT'],
18-
'adler32': '32',
19-
'file_size': 1024,
20-
'file_events': 3141
21-
})
22-
23-
assert len(responses.calls) == 1
24-
submitted = json.loads(responses.calls[0].request.body)
25-
assert submitted['paths'][0] == 'root://foo.bar.ROOT'
26-
assert submitted['adler32'] == '32'
27-
assert submitted['file_events'] == 3141
28-
assert submitted['file_size'] == 1024
29-
30-
31-
@responses.activate
32-
def test_put_file_add_with_prefix():
33-
responses.add(responses.PUT, 'http://servicex.org/files', status=206)
34-
sx = ServiceXAdapter("http://servicex.org", "xcache123:")
35-
sx.put_file_add({
36-
'paths': ['root://foo.bar.ROOT'],
37-
'adler32': '32',
38-
'file_size': 1024,
39-
'file_events': 3141
40-
})
41-
42-
assert len(responses.calls) == 1
43-
submitted = json.loads(responses.calls[0].request.body)
44-
assert submitted['paths'][0] == 'xcache123:root://foo.bar.ROOT'
45-
assert submitted['adler32'] == '32'
46-
assert submitted['file_events'] == 3141
47-
assert submitted['file_size'] == 1024
12+
# @responses.activate
13+
# def test_put_file_add():
14+
# responses.add(responses.PUT, 'http://servicex.org/files', status=206)
15+
# sx = ServiceXAdapter("http://servicex.org")
16+
# sx.put_file_add({
17+
# 'paths': ['root://foo.bar.ROOT'],
18+
# 'adler32': '32',
19+
# 'file_size': 1024,
20+
# 'file_events': 3141
21+
# })
22+
23+
# assert len(responses.calls) == 1
24+
# submitted = json.loads(responses.calls[0].request.body)
25+
# assert submitted['paths'][0] == 'root://foo.bar.ROOT'
26+
# assert submitted['adler32'] == '32'
27+
# assert submitted['file_events'] == 3141
28+
# assert submitted['file_size'] == 1024
29+
30+
31+
# @responses.activate
32+
# def test_put_file_add_with_prefix():
33+
# responses.add(responses.PUT, 'http://servicex.org/files', status=206)
34+
# sx = ServiceXAdapter("http://servicex.org", "xcache123:")
35+
# sx.put_file_add({
36+
# 'paths': ['root://foo.bar.ROOT'],
37+
# 'adler32': '32',
38+
# 'file_size': 1024,
39+
# 'file_events': 3141
40+
# })
41+
42+
# assert len(responses.calls) == 1
43+
# submitted = json.loads(responses.calls[0].request.body)
44+
# assert submitted['paths'][0] == 'xcache123:root://foo.bar.ROOT'
45+
# assert submitted['adler32'] == '32'
46+
# assert submitted['file_events'] == 3141
47+
# assert submitted['file_size'] == 1024
4848

4949

5050
@responses.activate

0 commit comments

Comments
 (0)