Skip to content

Commit 3694abf

Browse files
author
Julian Blank
committed
Fix unit test for visualization usages
1 parent aed4c55 commit 3694abf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Documentation_ / Paper_ / Installation_ / Usage_ / Citation_ / Contact_
4040

4141

4242
.. _Installation:
43+
4344
Installation
4445
====================================================================
4546

@@ -71,6 +72,7 @@ directory because otherwise not the in site-packages installed version will be u
7172
7273
7374
.. _Usage:
75+
7476
Usage
7577
==================================
7678

@@ -109,6 +111,7 @@ A representative run of NSGA2 looks as follows:
109111

110112

111113
.. _Citation:
114+
112115
Citation
113116
====================================================================
114117

@@ -129,6 +132,7 @@ Meanwhile, if you have used our framework for research purposes, please cite us
129132

130133

131134
.. _Contact:
135+
132136
Contact
133137
====================================================================
134138

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def packages():
6363

6464

6565
data['long_description'] = readme()
66+
data['long_description_content_type'] = 'text/x-rst'
6667
data['packages'] = packages()
6768

6869

tests/visualization/test_visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class VisualizationTest(unittest.TestCase):
99

1010
def test_usages(self):
1111
folder = os.path.join(get_pymoo(), "pymoo", "usage", "visualization")
12-
test_usage([os.path.join(folder, fname) for fname in os.listdir(folder)])
12+
test_usage([os.path.join(folder, fname) for fname in os.listdir(folder) if fname.endswith("py")])
1313

1414
if __name__ == '__main__':
1515
unittest.main()

0 commit comments

Comments
 (0)