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

Group #1 #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SeverinBeger
Copy link
Collaborator

First Refactor, Max, Baochang, Severin

First Refactor, Max, Baochang, Severin
@alextsakpinis alextsakpinis changed the title Update html_util.py Group #1 Nov 22, 2023
Copy link

@dejavu9127 dejavu9127 left a comment

Choose a reason for hiding this comment

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

testable_html needs to be staticmethod. Currently written as method in class.

string_io: StringIO = StringIO()

if page_data.has_attribute("Test"):
if self._check_page_attribute("Test"):
for type in types

Choose a reason for hiding this comment

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

Seems to be incomplete for loop

self._page_crawler = page_crawler
self._path_parser = path_parser

def testable_html(self, include_suite_setup: bool) -> str:

Choose a reason for hiding this comment

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

Needs to be static method

tear_down_path: WikiPagePath = wiki_page.get_page_crawler().get_full_path(teardown)
tear_down_path_name: str = path_parser.render(tear_down_path)
string_io.writelines(["!include -teardown .", tear_down_path_name, "\n"])
string_io=self._write_pathname_to_IO(self,string_io,teardown, wiki_page,"teardown")
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is no return value of "self._write_pathname_to_IO"

def _write_pathname_to_IO(self,string_io: StringIO,search_page: WikiPage, wiki_page: WikiPage, type: str) -> StringIO:
page_path: WikiPagePath = wiki_page.get_page_crawler().get_full_path(search_page)
page_path_name: str = self._path_parser.render(page_path)
string_io.writelines(["!include -",type," .", page_path_name, "\n"])
Copy link
Collaborator

Choose a reason for hiding this comment

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

there will be whitespace between "-" and the "type". Maybe it's better to use f strings.

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.

3 participants