Skip to content

Commit

Permalink
Rename djsc_sandbox to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ktowen committed Oct 10, 2024
1 parent 8a91455 commit 8312b47
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: djsc_sandbox
POSTGRES_DB: sandbox
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
Expand All @@ -48,7 +48,7 @@ jobs:
python -m poetry run pip install "Django${{ matrix.django-version }}"
- name: Run Tests
run: |
python -m poetry run coverage run djsc_sandbox/manage.py test tests
python -m poetry run coverage run sandbox/manage.py test tests
python -m poetry run coverage lcov -o ./coverage/lcov.info
- name: Upload coverage to Coveralls in parallel
uses: coverallsapp/github-action@master
Expand All @@ -64,4 +64,4 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
parallel-finished: true
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ coverage.xml
*.mo
*.pot
# Must include sandbox translations for tests
!djsc_sandbox/myapp/locale/**
!sandbox/myapp/locale/**

# Django stuff:
*.log
Expand Down Expand Up @@ -110,4 +110,4 @@ venv.bak/

# local only by design
poetry.lock
setup.py
setup.py
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

.PHONY: test
test:
poetry run djsc_sandbox/manage.py test tests
poetry run sandbox/manage.py test tests

.PHONY: coverage
coverage:
poetry run coverage run djsc_sandbox/manage.py test tests
poetry run coverage run sandbox/manage.py test tests

.PHONY: coverage-html
coverage-html:
poetry run coverage run djsc_sandbox/manage.py test tests && poetry run coverage html
poetry run coverage run sandbox/manage.py test tests && poetry run coverage html

.PHONY: reqs
reqs:
poetry export --without-hashes --dev --format requirements.txt > requirements.txt
poetry export --without-hashes --dev --format requirements.txt > requirements.txt
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ Contributing

- PRs are welcome!
- To run the test suite run ``make`` or ``make coverage``. The tests for this
project live inside a small django project called ``djsc_sandbox``.
project live inside a small django project called ``sandbox``.


Credits
-------

Inspired by (and conceptually forked from)
`django-js-reverse <https://github.com/ierror/django-js-reverse>`_
`django-js-reverse <https://github.com/ierror/django-js-reverse>`_
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,58 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: djsc_sandbox/myapp/choices.py:4
#: sandbox/myapp/choices.py:4
msgid "Freshman"
msgstr "Estudiante de primer año"

#: djsc_sandbox/myapp/choices.py:5
#: sandbox/myapp/choices.py:5
msgid "Sophomore"
msgstr "Estudiante de segundo año"

#: djsc_sandbox/myapp/choices.py:6
#: sandbox/myapp/choices.py:6
msgid "Junior"
msgstr "Estudiante de tercer año"

#: djsc_sandbox/myapp/choices.py:7
#: sandbox/myapp/choices.py:7
msgid "Senior"
msgstr "Estudiante de último año"

#: djsc_sandbox/myapp/choices.py:8
#: sandbox/myapp/choices.py:8
msgid "Graduate"
msgstr "Graduado"

#: djsc_sandbox/myapp/choices.py:15
#: sandbox/myapp/choices.py:15
msgid "Vinyl"
msgstr "Vinil"

#: djsc_sandbox/myapp/choices.py:16
#: sandbox/myapp/choices.py:16
msgid "CD"
msgstr "CD"

#: djsc_sandbox/myapp/choices.py:22
#: sandbox/myapp/choices.py:22
msgid "VHS Tape"
msgstr "Cinta VHS"

#: djsc_sandbox/myapp/choices.py:23
#: sandbox/myapp/choices.py:23
msgid "DVD"
msgstr "DVD"

#: djsc_sandbox/myapp/choices.py:26
#: sandbox/myapp/choices.py:26
msgid "Unknown"
msgstr "Desconocido"

#: djsc_sandbox/myapp/choices.py:30
#: sandbox/myapp/choices.py:30
msgid "Gold"
msgstr "Oro"

#: djsc_sandbox/myapp/choices.py:31
#: sandbox/myapp/choices.py:31
msgid "Silver"
msgstr "Plata"

#: djsc_sandbox/myapp/choices.py:32
#: sandbox/myapp/choices.py:32
msgid "Bronze"
msgstr "Bronce"

#: djsc_sandbox/tests/test_core.py:16
#: sandbox/tests/test_core.py:16
msgid "b"
msgstr "b"
msgstr "b"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions djsc_sandbox/settings.py → sandbox/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for djsc_sandbox project.
Django settings for sandbox project.
Generated by 'django-admin startproject' using Django 3.1.7.
Expand Down Expand Up @@ -118,4 +118,4 @@
# https://docs.djangoproject.com/en/3.1/howto/static-files/

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_ROOT = os.path.join(BASE_DIR, "static")
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dukpy import evaljs

from django_js_choices.core import generate_choices, generate_js, prepare_choices, register_choice
from djsc_sandbox.myapp.choices import MEDAL_TYPES, MEDIA_CHOICES, YEAR_IN_SCHOOL_CHOICES
from sandbox.myapp.choices import MEDAL_TYPES, MEDIA_CHOICES, YEAR_IN_SCHOOL_CHOICES


class PrepareChoicesTestCase(SimpleTestCase):
Expand Down Expand Up @@ -246,4 +246,4 @@ def test_same_values_for_different_choices_type(self):
yes_no_d1 = self.get_pairs(json_content, "modeld_yes_no")
yes_no_d2 = self.get_pairs(json_content, "modeld_yes_no_2")
self.assertTrue(yes_no_d1)
self.assertEqual(yes_no_d1, yes_no_d2)
self.assertEqual(yes_no_d1, yes_no_d2)
File renamed without changes.
File renamed without changes.

0 comments on commit 8312b47

Please sign in to comment.