Skip to content

Commit 7ffd0dd

Browse files
authored
Changing local file test to remote https to make testing easier (ghandic#57)
* Changing local file test to remote https to make testing easier * Changing local file test to remote https to make testing easier * Fixing license badge in README
1 parent 07f7278 commit 7ffd0dd

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/python-package.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
# Validate the sdist tests work for conda
5555
tar -xvf $PACKAGE
5656
cd jsf-*
57+
pip install .
58+
PACKAGE_DIR=`pip show jsf | grep "Location" | sed 's/^.*: //'`
59+
cd $PACKAGE_DIR/jsf
5760
pip install pytest
5861
pytest
5962
- name: Upload coverage

jsf/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
</a>
1515
<br />
1616
<a href="https://github.com/ghandic/jsf/blob/main/LICENSE" target="_blank">
17-
<img src="https://img.shields.io/github/license/ghandic/jsf.svg" alt="License">
17+
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License">
1818
</a>
1919
<a href="https://github.com/psf/black" target="_blank">
2020
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black">
2121
</a>
2222
</p>
2323

24-
2524
Use **jsf** along with fake data generators to provide consistent and meaningful fake data for your system.
2625

2726
## Main Features
2827

29-
- Provides out of the box data generation from any JSON schema 📦
28+
- Provides out of the box data generation from any JSON schema 📦
29+
3030
* Extendable custom data providers using any lambda functions 🔗
31-
* Multi level state for dependant data (eg multiple objects sharing value, such as children with same surname) 🤓
32-
* Inbuilt validation of fake JSON produced ✅
33-
* In memory conversion from JSON Schema to Pydantic Models with generated examples 🤯
34-
* Seamless integration with [FastAPI](https://fastapi.tiangolo.com/) 🚀
31+
- Multi level state for dependant data (eg multiple objects sharing value, such as children with same surname) 🤓
32+
- Inbuilt validation of fake JSON produced ✅
33+
- In memory conversion from JSON Schema to Pydantic Models with generated examples 🤯
34+
- Seamless integration with [FastAPI](https://fastapi.tiangolo.com/) 🚀
3535

3636
## Installation
3737

@@ -102,7 +102,6 @@ docker run -v $PWD:/data challisa/jsf jsf --schema /data/custom.json --instance
102102

103103
</details>
104104

105-
106105
### FastAPI Integration 🚀
107106

108107
Create a file main.py with:
@@ -154,4 +153,4 @@ Navigate to [http://127.0.0.1:8000](http://127.0.0.1:8000) and check out your en
154153

155154
## License
156155

157-
* [MIT License](/LICENSE)
156+
- [MIT License](/LICENSE)

jsf/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ faker>=15.3.4
22
jsonschema>=4.17.3
33
pydantic>=1.10.4
44
rstr>=3.2.0
5-
smart-open>=6.3.0
5+
smart-open[http]>=6.3.0
66

jsf/tests/data/external-ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"$ref": "#/definitions/LocalType"
99
},
1010
"ReferenceToExternalSchema": {
11-
"$ref": "file://jsf/tests/data/external-ref-common.json#/definitions/ExternalType"
11+
"$ref": "https://raw.githubusercontent.com/ghandic/jsf/main/jsf/tests/data/external-ref-common.json#/definitions/ExternalType"
1212
}
1313
},
1414
"definitions": {

0 commit comments

Comments
 (0)