Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🙉Monke Good #13

Merged
merged 6 commits into from
Nov 20, 2023
Merged

🙉Monke Good #13

merged 6 commits into from
Nov 20, 2023

Conversation

awtkns
Copy link
Member

@awtkns awtkns commented Nov 17, 2023

  • improve test names (shown below)
  • make pytest output be verbose by default
  • add ability to load runners by path
  • improved code loading

Screenshot 2023-11-17 at 3 23 15 PM

@asim-shrestha
Copy link
Contributor

Maybe outside scope but should get the id in the name or folder somehow for spot testing single failures

Comment on lines 111 to 126
def find_decorated_scrapers(file_path: Path) -> List[AgentRunnerClass]:
with open(file_path, "r") as source:
node = ast.parse(source.read())

runners: List[AgentRunnerClass] = []
for clazz in [n for n in node.body if isinstance(n, ast.ClassDef)]:
if "AgentRunner" in [getattr(base, "id", "") for base in clazz.bases]:
runners.append(
AgentRunnerClass(
class_name=clazz.name,
class_path=str(file_path),
class_def=clazz,
)
)

return runners
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update the README with this new functionality

@asim-shrestha
Copy link
Contributor

What's with the deletion of the test?

@awtkns
Copy link
Member Author

awtkns commented Nov 20, 2023

Maybe outside scope but should get the id in the name or folder somehow for spot testing single failures

yes,

What's with the deletion of the test?

its a test in the wrong directory, the null agent test file is not needed anymore with the code analyzsis

@awtkns awtkns merged commit 99ff36c into main Nov 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants