Skip to content

Commit

Permalink
feat: Refactor workflows and update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 18, 2024
1 parent f2058e8 commit e111fb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:

Build-Documentation:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/docs'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -362,33 +361,3 @@ jobs:
# No changes
echo "No changes found. Nothing to commit or push."
fi
# # git add README.md

# # git commit -m "Update README with latest version"
# # git push


# #!/bin/bash

# # Check for changes
# if [[ $(git status --porcelain) ]]; then
# # Changes are present
# echo "Changes found. Committing and pushing..."

# # Add all changes
# git add .

# # Commit with a timestamp
# git commit -m "Auto commit: $(date)"

# # Push changes to the remote repository
# git push origin <your-branch-name>

# echo "Changes committed and pushed successfully."
# else
# # No changes
# echo "No changes found. Nothing to commit or push."
# fi
9 changes: 8 additions & 1 deletion tests/test_new_query_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ def nbia_client():
return nbia_client


@pytest.fixture(scope="session")
def nbia_client2():
nbia_client = NBIAClient(log_level="DEBUG")
return nbia_client


@pytest.fixture(scope="session")
def tcga_patients(nbia_client):

Expand All @@ -21,7 +27,8 @@ def tcga_patients(nbia_client):
return tcga_patients


def test_nbia_properties(nbia_client):
def test_nbia_properties(nbia_client2):
nbia_client = nbia_client2
assert isinstance(nbia_client.OAuth_client, OAuth2)
assert isinstance(nbia_client.headers, dict)
assert "Authorization" in nbia_client.headers.keys()
Expand Down

0 comments on commit e111fb2

Please sign in to comment.