From ff17e1397847f48eb10ca9d612d8713e16abfcb7 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:44:52 -0500 Subject: [PATCH 1/2] Fix lint errors from new black version --- tdameritrade/orders/constants.py | 1 + tdameritrade/orders/models/leg.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tdameritrade/orders/constants.py b/tdameritrade/orders/constants.py index 3209212..7cf5c69 100644 --- a/tdameritrade/orders/constants.py +++ b/tdameritrade/orders/constants.py @@ -1,5 +1,6 @@ """Constants used in Orders """ + from enum import Enum diff --git a/tdameritrade/orders/models/leg.py b/tdameritrade/orders/models/leg.py index 5b43cc0..18ee410 100644 --- a/tdameritrade/orders/models/leg.py +++ b/tdameritrade/orders/models/leg.py @@ -1,6 +1,7 @@ """ Order Leg usedin in Orders API """ + from dataclasses import dataclass from ..constants import ( From 0b199ccde4dcc7c6d76aaba8e632adb5c043ce65 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:50:46 -0500 Subject: [PATCH 2/2] remove unused nosetest references --- tdameritrade/tests/test_client.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tdameritrade/tests/test_client.py b/tdameritrade/tests/test_client.py index c1bf69f..cc6d83e 100644 --- a/tdameritrade/tests/test_client.py +++ b/tdameritrade/tests/test_client.py @@ -15,24 +15,6 @@ def tdclient(): class TestExtension: - def setup(self): - pass - # setup() before each test method - - def teardown(self): - pass - # teardown() after each test method - - @classmethod - def setup_class(cls): - pass - # setup_class() before any methods in this class - - @classmethod - def teardown_class(cls): - pass - # teardown_class() after any methods in this class - def test_init(self, tdclient): assert tdclient._refreshToken == "reftoken"