-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from lpm0073/next
add more unit tests
- Loading branch information
Showing
13 changed files
with
224 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,8 @@ runs: | |
pip install -r ./requirements.txt | ||
# see: https://pre-commit.ci/lite.html | ||
- name: pre-commit ci | ||
id: pre-commit-ci | ||
if: always() | ||
uses: pre-commit-ci/[email protected] | ||
- name: pre-commit | ||
id: pre-commit | ||
shell: bash | ||
run: | | ||
pre-commit run --all-files --show-diff-on-failure |
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
File renamed without changes.
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 @@ | ||
completely totally messed up bad data |
32 changes: 32 additions & 0 deletions
32
grader/tests/events/lawrence-mcdaniel-homework1-bad-message-1.json
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,32 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
{ | ||
"content": "Marv, I'd like to introduce you to all the nice YouTube viewers." | ||
}, | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
} | ||
] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": { | ||
"lambda": "lambda_langchain", | ||
"model": "gpt-3.5-turbo", | ||
"end_point": "ChatCompletion", | ||
"temperature": 0.5, | ||
"max_tokens": 256 | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
grader/tests/events/lawrence-mcdaniel-homework1-bad-message-2.json
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,29 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
} | ||
] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": { | ||
"lambda": "lambda_langchain", | ||
"model": "gpt-3.5-turbo", | ||
"end_point": "ChatCompletion", | ||
"temperature": 0.5, | ||
"max_tokens": 256 | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
grader/tests/events/lawrence-mcdaniel-homework1-bad-message-3.json
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,22 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": ["bad", "data"] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": { | ||
"lambda": "lambda_langchain", | ||
"model": "gpt-3.5-turbo", | ||
"end_point": "ChatCompletion", | ||
"temperature": 0.5, | ||
"max_tokens": 256 | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
grader/tests/events/lawrence-mcdaniel-homework1-bad-message-4.json
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,29 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
{ | ||
"content": "Marv, I'd like to introduce you to all the nice YouTube viewers.", | ||
"additional_kwargs": {}, | ||
"type": "human", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
} | ||
] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": {} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Setup for automated_grader package.""" | ||
from setup_utils import get_semantic_version # pylint: disable=import-error | ||
from setuptools import find_packages, setup | ||
|
||
from setup_utils import get_semantic_version # pylint: disable=import-error | ||
|
||
|
||
setup( | ||
name="automated_grader", | ||
|
@@ -12,7 +13,7 @@ | |
author_email="[email protected]", | ||
packages=find_packages(), | ||
package_data={ | ||
"automated_grader": ["*.md", "data/*"], | ||
"automated_grader": ["*.md"], | ||
}, | ||
install_requires=[], | ||
) |
File renamed without changes.
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