Skip to content

Commit

Permalink
Add import for get_environment_variable and json module
Browse files Browse the repository at this point in the history
* **d2x/auth/sf/login_url.py**
  - Add import for `get_environment_variable` from `d2x.api.gh`.

* **tests/test_auth_url.py**
  - Add import for `json` module.
  • Loading branch information
jlantz committed Oct 30, 2024
1 parent 05588c1 commit dfc9d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion d2x/auth/sf/login_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from d2x.base.types import CLIOptions
from typing import Optional
from d2x.auth.sf.auth_url import parse_sfdx_auth_url
from d2x.api.gh import get_environment_variable # Add this import
from d2x.api.gh import get_environment_variable


def generate_login_url(instance_url: str, access_token: str) -> str:
Expand Down
1 change: 1 addition & 0 deletions tests/test_auth_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from d2x.models.sf.org import SalesforceOrgInfo
from d2x.base.types import CLIOptions
from d2x.models.sf.auth import AuthInfo
import json

class TestExchangeToken(unittest.TestCase):
@patch("d2x.auth.sf.auth_url.set_environment_variable")
Expand Down

0 comments on commit dfc9d8b

Please sign in to comment.