Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
skasberger committed Jul 6, 2022
2 parents bb7c4be + 50af356 commit 7ccf87e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ project/
configs/installations/
!configs/installations/aussda_production
!configs/installations/localhost_docker
Pipfile.lock
browserengines
data/
user/
dataverse_resources/
Pipfile.lock
browserengines
env-config/
dendron.yml
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _history:


0.1.0 - (2022-07-05)
----------------------------------------------------------

`Release <https://github.com/gdcc/dataverse_tests/releases/tag/0.1.0>`_
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ pipenv install
pipenv shell
```

**Install dataverse_tests**

```bash
pip install .
```
## Basic Usage

### 1. Set up .env-file
Expand Down Expand Up @@ -192,8 +197,7 @@ Find out more about the functionalities in the docstrings inside `src/dvtests/ut
Generally, you can call them like this

```shell
cd src/dvtests
python utils FUNCTION_NAME
python src/dvtests FUNCTION_NAME [FUNCTION_VARIABLES]
```

#### 4.a. Create testdata
Expand All @@ -205,13 +209,13 @@ Note: The `:root` Dataverse is not published on a fresh installation and often t
**Call**

```shell
python src/dvtests create-testdata FILENAME
python src/dvtests create-testdata CONFIG_FILENAME
```

`FILENAME` is the path to the JSON file with the orders, e. g.:

```shell
python src/dvtests create-testdata configs/installations/localhost_docker/utils/create_testdata_01.json
python src/dvtests create-testdata configs/utils/create_testdata_01.json
```

**JSON format**
Expand Down Expand Up @@ -332,13 +336,13 @@ Remove testdata cleans up your Dataverse installation after the usage of testdat
**Call**

```shell
python src/dvtests remove-testdata USER_HANDLE PARENT
python src/dvtests remove-testdata USER_HANDLE PARENT [OPTION]
```

`USER_HANDLE` must be present in user JSON and `PARENT` must be the top node of the data tree, which should be removed.

```shell
python src/dvtests create-testdata --remove-parent configs/installations/aussda_production/utils/create_testdata_01.json
python src/dvtests remove-testdata dataverseAdmin test_create_testdata --remove-parent
```

#### 4.c. Collect data
Expand All @@ -352,7 +356,7 @@ Note: The tests automatically look after data inside `data/DATAVERSE_INSTALLATIO
**Call**

```shell
python src/dvtests collect --parent PARENT --create-json
python src/dvtests collect --parent PARENT [OPTION]
```

`USER_HANDLE` must be present in the related user JSON and `PARENT` must be the top node of the data tree, which should be removed.
Expand Down

0 comments on commit 7ccf87e

Please sign in to comment.