-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Python 3.8 removed as not supported * build: some improvements * tests: fixed dynamic Werkzeug version using in User-Agent header * tests: fix import eqmock * tests: convert request.headers to dict to allow serialisation of JSON * tests: updated value of content-length header * tests: deleted extra file
- Loading branch information
Showing
24 changed files
with
91 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc", "Flask[async]>=3.0.0,<4.0"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from typing import Any | ||
|
||
|
||
class EqMock: | ||
value: Any = None | ||
|
||
def __init__(self, remember: bool = False) -> None: | ||
self.remember: bool = remember | ||
|
||
def __eq__(self, other: Any) -> bool: # noqa: ANN401 | ||
if self.remember and self.value is not None: | ||
return self.value == other | ||
else: | ||
assert other, other | ||
|
||
if self.remember: | ||
self.value = other | ||
|
||
return True | ||
|
||
def __repr__(self) -> str: | ||
return repr(self.value) if self.remember else super().__repr__() | ||
|
||
def __str__(self) -> str: | ||
return str(self.value) if self.remember else super().__str__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from typing import Any | ||
|
||
|
||
class EqMock: | ||
value: Any = None | ||
|
||
def __init__(self, remember: bool = False) -> None: | ||
self.remember: bool = remember | ||
|
||
def __eq__(self, other: Any) -> bool: # noqa: ANN401 | ||
if self.remember and self.value is not None: | ||
return self.value == other | ||
else: | ||
assert other, other | ||
|
||
if self.remember: | ||
self.value = other | ||
|
||
return True | ||
|
||
def __repr__(self) -> str: | ||
return repr(self.value) if self.remember else super().__repr__() | ||
|
||
def __str__(self) -> str: | ||
return str(self.value) if self.remember else super().__str__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ readme = {file = "README.md", content-type = "text/markdown"} | |
license = {file = "LICENSE.txt"} | ||
authors = [{name = "Nycholas Oliveira", email = "[email protected]"}] | ||
maintainers = [{name = "Cenobit Technologies Inc.", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
dependencies = ["Flask-JSONRPC@git+https://github.com/cenobites/flask-jsonrpc"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.