Skip to content

Commit 1dc6ecf

Browse files
committedJul 9, 2015
Fix the tests by patching 1.rst
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 0f4b1e2 commit 1dc6ecf

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
 

‎tests/data/1-nolinks.rst

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. title: Welcome to Nikola
2+
.. slug: welcome-to-nikola
3+
.. date: 2012-03-30 23:00:00 UTC-03:00
4+
.. tags: nikola, python, demo, blog
5+
.. author: Roberto Alsina
6+
.. link: https://getnikola.com/
7+
.. description:
8+
.. category: nikola
9+
10+
.. figure:: http://farm1.staticflickr.com/138/352972944_4f9d568680.jpg
11+
:target: http://farm1.staticflickr.com/138/352972944_4f9d568680_z.jpg?zz=1
12+
:class: thumbnail
13+
:alt: Nikola Tesla Corner by nicwest, on Flickr
14+
15+
If you can see this in a web browser, it means you did something wrong, because
16+
you should be reading a nice post with links, and this should be used in
17+
the test suite only.
18+
19+
Next steps:
20+
21+
* Read the manual
22+
* Visit the Nikola website to learn more
23+
* See a demo photo gallery
24+
* See a demo listing
25+
* See a demo slideshow
26+
* See a demo of the Bootstrap theme
27+
28+
Send feedback to info@getnikola.com!

‎tests/test_integration.py

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def fill_site(self):
105105
"""Fill the site with demo content."""
106106
self.init_command.copy_sample_site(self.target_dir)
107107
self.init_command.create_configuration(self.target_dir)
108+
src1 = os.path.join(os.path.dirname(__file__), 'data', '1-nolinks.rst')
109+
dst1 = os.path.join(self.target_dir, 'posts', '1.rst')
110+
shutil.copy(src1, dst1)
108111
# File for Issue #374 (empty post text)
109112
with io.open(os.path.join(self.target_dir, 'posts', 'empty.txt'), "w+", encoding="utf8") as outf:
110113
outf.write(
@@ -526,6 +529,9 @@ def fill_site(self):
526529
"""Fill the site with demo content."""
527530
self.init_command.copy_sample_site(self.target_dir)
528531
self.init_command.create_configuration(self.target_dir)
532+
src1 = os.path.join(os.path.dirname(__file__), 'data', '1-nolinks.rst')
533+
dst1 = os.path.join(self.target_dir, 'posts', '1.rst')
534+
shutil.copy(src1, dst1)
529535
os.system('rm "{0}/stories/creating-a-theme.rst" "{0}/stories/extending.txt" "{0}/stories/internals.txt" "{0}/stories/manual.rst" "{0}/stories/social_buttons.txt" "{0}/stories/theming.rst" "{0}/stories/upgrading-to-v6.txt"'.format(self.target_dir))
530536

531537
def test_invariance(self):

0 commit comments

Comments
 (0)
Please sign in to comment.