Skip to content

Commit

Permalink
chore: Removed unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuma committed Jan 7, 2025
1 parent da81819 commit 898e913
Show file tree
Hide file tree
Showing 14 changed files with 252 additions and 253 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/check_python_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install repo-tools
run: pip install edx-repo-tools[find_dependencies]

- name: Install setuptool
run: pip install setuptools
run: pip install setuptools

- name: Run Python script
run: |
find_python_dependencies \
Expand All @@ -35,6 +35,5 @@ jobs:
--ignore https://github.com/edx/braze-client \
--ignore https://github.com/edx/edx-name-affirmation \
--ignore https://github.com/mitodl/edx-sga \
--ignore https://github.com/edx/token-utils \
--ignore https://github.com/open-craft/xblock-poll
11 changes: 8 additions & 3 deletions lms/djangoapps/courseware/tests/test_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

from lms.djangoapps.courseware.jwt import _encode_and_sign, create_jwt, unpack_jwt

import unittest
from unittest.mock import patch


test_user_id = 121
invalid_test_user_id = 120
Expand All @@ -28,6 +25,10 @@


class TestSign(unittest.TestCase):
"""
Tests for JWT creation and signing.
"""

def test_create_jwt(self):
token = create_jwt(test_user_id, test_timeout, {}, test_now)

Expand Down Expand Up @@ -65,6 +66,10 @@ def _verify_jwt(jwt_token):


class TestUnpack(unittest.TestCase):
"""
Tests for JWT unpacking.
"""

def test_unpack_jwt(self):
token = create_jwt(test_user_id, test_timeout, {}, test_now)
decoded = unpack_jwt(token, test_user_id, test_now)
Expand Down
12 changes: 6 additions & 6 deletions requirements/edx-sandbox/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ cryptography==44.0.0
# via -r requirements/edx-sandbox/base.in
cycler==0.12.1
# via matplotlib
fonttools==4.55.2
fonttools==4.55.3
# via matplotlib
joblib==1.4.2
# via nltk
kiwisolver==1.4.7
kiwisolver==1.4.8
# via matplotlib
lxml[html-clean,html_clean]==5.3.0
# via
Expand All @@ -37,7 +37,7 @@ markupsafe==3.0.2
# via
# chem
# openedx-calc
matplotlib==3.9.3
matplotlib==3.10.0
# via -r requirements/edx-sandbox/base.in
mpmath==1.3.0
# via sympy
Expand All @@ -59,11 +59,11 @@ openedx-calc==4.0.1
# via -r requirements/edx-sandbox/base.in
packaging==24.2
# via matplotlib
pillow==11.0.0
pillow==11.1.0
# via matplotlib
pycparser==2.22
# via cffi
pyparsing==3.2.0
pyparsing==3.2.1
# via
# -r requirements/edx-sandbox/base.in
# chem
Expand All @@ -75,7 +75,7 @@ random2==1.0.2
# via -r requirements/edx-sandbox/base.in
regex==2024.11.6
# via nltk
scipy==1.14.1
scipy==1.15.0
# via
# -r requirements/edx-sandbox/base.in
# chem
Expand Down
Loading

0 comments on commit 898e913

Please sign in to comment.