Skip to content

Commit 354349e

Browse files
authored
Update readme (#48)
* update black version * Update readme
1 parent b0bb137 commit 354349e

File tree

7 files changed

+151
-83
lines changed

7 files changed

+151
-83
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __pycache__/
99
# Virtual envrionment
1010
.env/
1111
env/
12+
.venv/
1213

1314
# VScode
1415
.vscode/settings.json

examples/starwars_grammer.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Grammar file based on the graphql API here: https://github.com/apollographql/starwars-server
2+
Enums:
3+
Episode:
4+
- NEWHOPE
5+
- EMPIRE
6+
- JEDI
7+
8+
LengthUnit:
9+
- METER
10+
- FOOT
11+
12+
# Exclamation means not null
13+
InputTypes:
14+
ColorInput:
15+
red: Int!
16+
green: Int!
17+
blue: Int!
18+
19+
ReviewInput:
20+
stars: Int!
21+
commentary: String
22+
favorite_color: ColorInput
23+
24+
25+
# If a output parameter requires input such as a connection parameter (which has pagination IE. first, after),
26+
# then it is denoted by args then with an output type.
27+
# Refer to: https://graphql.org/learn/pagination/ for more information
28+
29+
# All markings with underscore means it's an internal specifier
30+
Interfaces:
31+
Character:
32+
id: ID!
33+
name: String!
34+
friends: Character[]
35+
friendsConnection:
36+
args_:
37+
first: Int
38+
after: ID
39+
output_: friendsConnection
40+
appearsIn: Episode[]!
41+
primaryFunction: String
42+
43+
ObjectTypes:
44+
Droid:
45+
implements_: Character
46+
id: ID!
47+
name: String!
48+
friends: Character[]
49+
friendsConnection:
50+
args:
51+
first: Int
52+
after: ID
53+
output: friendsConnection
54+
appearsIn: Episode[]!
55+
primaryFunction: String
56+
57+
Human:
58+
implements_: Character
59+
id: ID!
60+
name: String!
61+
friends: Character[]
62+
friendsConnection:
63+
args_:
64+
first: Int
65+
after: ID
66+
output_: friendsConnection
67+
appearsIn: Episode[]!
68+
primaryFunction: String
69+
70+
FriendsConnection:
71+
totalCount: Int
72+
edges: [FriendsEdge]
73+
friends: [Character]
74+
pageInfo: PageInfo!
75+
76+
FriendsEdge:
77+
cursor: ID!
78+
node: Character
79+
80+
PageInfo:
81+
startCursor: ID
82+
endCursor: ID
83+
hasNextPage: Boolean!
84+
85+
Queries:
86+
hero:
87+
args_:
88+
episode: Episode
89+
returns_: Character
90+
reviews:
91+
args_:
92+
episode: Episode!
93+
returns_: [Review]
94+
search:
95+
args_:
96+
text: String
97+
returns_: [SearchResult]
98+

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A stateful GraphQL API fuzzer with many inspirations from [Microsoft's RESTler f
1717

1818
```sh
1919
# Creating the virtual environment
20-
python3 -m venv .env
20+
python3 -m venv .venv
2121

2222
# Activating the virtual environment
2323
source .env/bin/activate

requester_test_temp.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

requirements.txt

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
1-
astroid==2.9.0
2-
attrs==21.2.0
3-
autopep8==1.6.0
4-
backports.entry-points-selectable==1.1.1
5-
black==22.3.0
6-
certifi==2021.10.8
7-
cfgv==3.3.1
8-
charset-normalizer==2.0.7
9-
click==8.0.3
10-
colorama==0.4.4
11-
coverage==6.2
12-
distlib==0.3.3
1+
astroid==2.15.8
2+
attrs==23.1.0
3+
autopep8==2.0.4
4+
backports.entry-points-selectable==1.2.0
5+
black==23.9.1
6+
certifi==2023.7.22
7+
cfgv==3.4.0
8+
charset-normalizer==3.2.0
9+
click==8.1.7
10+
colorama==0.4.6
11+
colorclass==2.2.2
12+
coverage==7.3.1
13+
dill==0.3.7
14+
distlib==0.3.7
1315
docopt==0.6.2
14-
filelock==3.4.0
15-
flake8==4.0.1
16-
identify==2.4.0
17-
idna==3.3
18-
importlib-metadata==4.8.2
19-
iniconfig==1.1.1
20-
isort==5.10.1
21-
lazy-object-proxy==1.6.0
22-
mccabe==0.6.1
23-
mypy-extensions==0.4.3
24-
networkx==2.6.3
25-
nodeenv==1.6.0
26-
num2words==0.5.10
27-
packaging==21.3
28-
pathspec==0.9.0
29-
platformdirs==2.4.0
30-
pluggy==1.0.0
31-
pre-commit==2.15.0
32-
py==1.11.0
33-
pycodestyle==2.8.0
34-
pyflakes==2.4.0
35-
pylint==2.12.1
36-
pyparsing==3.0.6
37-
pytest==6.2.5
38-
pytest-cov==3.0.0
39-
PyYAML==6.0
40-
regex==2021.11.10
41-
requests==2.26.0
42-
six==1.16.0
43-
toml==0.10.2
44-
tomli==1.2.2
45-
typed-ast==1.5.0
46-
typing-extensions==4.0.0
47-
urllib3==1.26.7
48-
virtualenv==20.10.0
49-
wrapt==1.13.3
50-
zipp==3.6.0
16+
filelock==3.12.4
17+
flake8==6.1.0
18+
identify==2.5.29
19+
idna==3.4
20+
importlib-metadata==6.8.0
21+
iniconfig==2.0.0
22+
isort==5.12.0
23+
lazy-object-proxy==1.9.0
24+
mccabe==0.7.0
25+
mypy-extensions==1.0.0
26+
networkx==3.1
27+
nodeenv==1.8.0
28+
num2words==0.5.12
29+
packaging==23.1
30+
pathspec==0.11.2
31+
pip-upgrader==1.4.15
32+
platformdirs==3.10.0
33+
pluggy==1.3.0
34+
pre-commit==3.4.0
35+
pycodestyle==2.11.0
36+
pyflakes==3.1.0
37+
pylint==2.17.6
38+
pyparsing==3.1.1
39+
pytest==7.4.2
40+
pytest-cov==4.1.0
41+
PyYAML==6.0.1
42+
requests==2.31.0
43+
terminaltables==3.1.10
44+
tomli==2.0.1
45+
tomlkit==0.12.1
46+
typed-ast==1.5.5
47+
typing_extensions==4.8.0
48+
urllib3==2.0.5
49+
virtualenv==20.24.5
50+
wrapt==1.15.0
51+
zipp==3.17.0
File renamed without changes.

utils/grammar_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class GrammarParser:
1414
# Constructor
1515
def __init__(self, spec_path: str):
1616
self.grammar_contents = self.load_yaml(spec_path)
17+
# breakpoint()
1718

1819
def generate_dependency_graph(self) -> nx.DiGraph:
1920
"""

0 commit comments

Comments
 (0)