Skip to content

Commit 9492997

Browse files
committed
flake8 compliance
1 parent eb9a937 commit 9492997

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

tests/test_servicex_adapter.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import tempfile
3030
import time
3131
import datetime
32-
import unittest
3332
from unittest.mock import patch
3433

3534
import httpx
@@ -505,6 +504,7 @@ async def test_get_authorization(servicex):
505504
r = await servicex._get_authorization()
506505
get_token.assert_called_once()
507506

507+
508508
@pytest.mark.asyncio
509509
@patch("servicex.servicex_adapter.ClientSession.get")
510510
async def test_get_transformation_results_success(get_transformation_results, servicex):
@@ -519,12 +519,15 @@ async def test_get_transformation_results_success(get_transformation_results, se
519519
headers={},
520520
params={
521521
"begin_at": now.isoformat(),
522-
}
522+
},
523523
)
524524

525+
525526
@pytest.mark.asyncio
526527
@patch("servicex.servicex_adapter.ClientSession.get")
527-
async def test_get_transformation_results_not_found(get_transformation_results, servicex):
528+
async def test_get_transformation_results_not_found(
529+
get_transformation_results, servicex
530+
):
528531
get_transformation_results.return_value.__aenter__.return_value.status = 404
529532
request_id = "123-45-6789"
530533
now = datetime.datetime.now(datetime.timezone.utc)
@@ -537,12 +540,15 @@ async def test_get_transformation_results_not_found(get_transformation_results,
537540
headers={},
538541
params={
539542
"begin_at": now.isoformat(),
540-
}
543+
},
541544
)
542545

546+
543547
@pytest.mark.asyncio
544548
@patch("servicex.servicex_adapter.ClientSession.get")
545-
async def test_get_transformation_results_not_authorized(get_transformation_results, servicex):
549+
async def test_get_transformation_results_not_authorized(
550+
get_transformation_results, servicex
551+
):
546552
get_transformation_results.return_value.__aenter__.return_value.status = 403
547553
request_id = "123-45-6789"
548554
now = datetime.datetime.now(datetime.timezone.utc)
@@ -555,12 +561,15 @@ async def test_get_transformation_results_not_authorized(get_transformation_resu
555561
headers={},
556562
params={
557563
"begin_at": now.isoformat(),
558-
}
564+
},
559565
)
560566

567+
561568
@pytest.mark.asyncio
562569
@patch("servicex.servicex_adapter.ClientSession.get")
563-
async def test_get_transformation_results_server_error(get_transformation_results, servicex):
570+
async def test_get_transformation_results_server_error(
571+
get_transformation_results, servicex
572+
):
564573
get_transformation_results.return_value.__aenter__.return_value.status = 500
565574
request_id = "123-45-6789"
566575
now = datetime.datetime.now(datetime.timezone.utc)
@@ -573,5 +582,5 @@ async def test_get_transformation_results_server_error(get_transformation_result
573582
headers={},
574583
params={
575584
"begin_at": now.isoformat(),
576-
}
585+
},
577586
)

0 commit comments

Comments
 (0)