From 18b259aae6036bf74a6403d1406e6065b238a12d Mon Sep 17 00:00:00 2001 From: salman2013 Date: Mon, 12 Feb 2024 20:06:30 +0500 Subject: [PATCH] chore: remove bok-choy references --- makeicons/Makefile | 7 --- makeicons/README.rst | 12 ----- makeicons/__init__.py | 0 makeicons/convert_icons.py | 34 ------------ makeicons/pages.py | 29 ----------- makeicons/raw_icons.html | 104 ------------------------------------- 6 files changed, 186 deletions(-) delete mode 100644 makeicons/Makefile delete mode 100644 makeicons/README.rst delete mode 100644 makeicons/__init__.py delete mode 100644 makeicons/convert_icons.py delete mode 100644 makeicons/pages.py delete mode 100644 makeicons/raw_icons.html diff --git a/makeicons/Makefile b/makeicons/Makefile deleted file mode 100644 index c878b32..0000000 --- a/makeicons/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -icons: - nosetests test_icons.py --with-save-baseline - mv screenshots/baseline/*png ../rate/public/default_icons/ - rm *.log - rm *.pyc - rm *~ - rm *test_page*png diff --git a/makeicons/README.rst b/makeicons/README.rst deleted file mode 100644 index 98e8b89..0000000 --- a/makeicons/README.rst +++ /dev/null @@ -1,12 +0,0 @@ -This is a simple script for generating images of faces for use in the -RateXBlock. - -You don't need to use this script yourself; they are committed to the -repo. The only time you might use this is if changing said icons. - -If you do want to use this, run: - - pip install bok_choy - make - -If you'd like to modify the icons, see the HTML file. diff --git a/makeicons/__init__.py b/makeicons/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/makeicons/convert_icons.py b/makeicons/convert_icons.py deleted file mode 100644 index a07fc03..0000000 --- a/makeicons/convert_icons.py +++ /dev/null @@ -1,34 +0,0 @@ -''' -This is a simple program which will capture icons from an HTML -Unicode font which can be used as happy/sad faces in the XBlock. We'd -rather use real fonts, but they render very poorly under some OSes -(Hello, Apple!), and may be missing on others (Hello, -Microsoft!). This script generally does not need to be rerun, but if -you would like to, we'd recommend running this under Ubuntu. -''' - -import unittest -from bok_choy.web_app_test import WebAppTest -from .pages import IconsPage - - -class TestIcons(WebAppTest): - """ - Tests for the GitHub site. - """ - - def test_page_existence(self): - """ - Make sure that the page is accessible. - """ - page = IconsPage(self.browser) - page.visit() - for i in range(5): - for icon in ["face", "num"]: - for style in "ais": - self.assertScreenshot("#"+style+icon+str(i+1), - style+icon+str(i+1)) - - -if __name__ == '__main__': - unittest.main() diff --git a/makeicons/pages.py b/makeicons/pages.py deleted file mode 100644 index 8838827..0000000 --- a/makeicons/pages.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -""" -This file is just the bok_choy pages file for our icons. bok_choy -is a test framework, so we follow this split into pages/icon, although -it is a little artifical in this case. -""" -from bok_choy.page_object import PageObject - - -class IconsPage(PageObject): - """ - We render our icons from HTML using bok_choy. bok_choy prefers - working from a real web URL, and this is a page for the URL of the - HTML file on github at the time of development - (`pmitros/ux-revamp` branch). If we continue developing, this URL - may need to change to `master` or otherwise. This should move from - pmitros/ux-revamp branch to master at some point - """ - - url = ''' - https://rawgit.com/pmitros/RateXBlock/pmitros/ux-revamp/makeicons/raw_icons.html - '''.strip() - - def is_browser_on_page(self): - ''' - Check whether we have the fifth selected numeric icon. This is - towards the bottom of the page. - ''' - return self.q(css='#snum5').is_present() diff --git a/makeicons/raw_icons.html b/makeicons/raw_icons.html deleted file mode 100644 index 9c10fde..0000000 --- a/makeicons/raw_icons.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - -
😁
-
😊
-
😐
-
😞
-
😭
-
-
😁
-
😊
-
😐
-
😞
-
😭
-
-
😁
-
😊
-
😐
-
😞
-
😭
-
-
- -
-
1
-
2
-
3
-
4
-
5
-
-
1
-
2
-
3
-
4
-
5
-
-
1
-
2
-
3
-
4
-
5
-
- -