Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 23, 2024
1 parent 37bd344 commit c8a94b9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ dist
*.egg-info
django_oapif/core/__version__.py

tests/benchmark/results
tests/benchmark/output
tests/output

tests/django_oapif_tests/tests/fixtures/polygon_2056.json.gz
tests/django_oapif_tests/tests/fixtures/polygon_2056_local_geom.json.gz

data
static
media
test_outputs
.vscode/
.python-version
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ cp .env.example .env
docker compose up --build -d

# deploy static files and migrate database
docker compose exec django_oapif_tests python manage.py collectstatic --no-input
docker compose exec django_oapif_tests python manage.py migrate --no-input
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py migrate --no-input

# A convenience start-up Django command is there
# to populate the database with testdata
docker compose exec django_oapif_tests python manage.py populate_users
docker compose exec django_oapif_tests python manage.py populate_data
docker compose exec django python manage.py populate_users
docker compose exec django python manage.py populate_data
```
After waiting little you'll be able to access all collections at http://0.0.0.0:7180/oapif/collections.

Expand Down Expand Up @@ -58,7 +58,7 @@ This project is [hosted on PyPI](https://pypi.org/project/django-ogcapif/). You

```bash
# Install with your favorite package manager
pip3 install --user django_oapif_tests-ogcapif
pip3 install --user https://github.com/opengisch/django-ogcapif
# Edit your Django project's settings.py accordingly:
settings.py
-----------
Expand Down
6 changes: 3 additions & 3 deletions scripts/download-fixtures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

mkdir -p src/tests/fixtures
mkdir -p ./tests/fixtures

# download fixtures
curl -L -o ./src/tests/fixtures/polygon_2056.json.gz 'https://drive.google.com/uc?export=download&id=1UuGoK_9Y99jiTvQd4juxu85eVZhvlAvy'
curl -L -o ./src/tests/fixtures/polygon_2056_local_geom.json.gz 'https://drive.google.com/uc?export=download&id=18PGtiptcJiRtLnVq7N64EVQLagse0bu0'
curl -L -o ./tests/fixtures/polygon_2056.json.gz 'https://drive.google.com/uc?export=download&id=1UuGoK_9Y99jiTvQd4juxu85eVZhvlAvy'
curl -L -o ./tests/fixtures/polygon_2056_local_geom.json.gz 'https://drive.google.com/uc?export=download&id=18PGtiptcJiRtLnVq7N64EVQLagse0bu0'
2 changes: 1 addition & 1 deletion tests/benchmark/time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

OUTPUT_PATH="tests/benchmark/results"
OUTPUT_PATH="tests/benchmark/output"

mkdir -p ${OUTPUT_PATH}
rm -f ${OUTPUT_PATH}/benchmark.dat
Expand Down

0 comments on commit c8a94b9

Please sign in to comment.