-
Notifications
You must be signed in to change notification settings - Fork 37
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
base: main
Are you sure you want to change the base?
Group #1 #40
Conversation
First Refactor, Max, Baochang, Severin
There was a problem hiding this 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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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"]) |
There was a problem hiding this comment.
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.
First Refactor, Max, Baochang, Severin