Skip to content

Commit

Permalink
Deployed 16593d0 with MkDocs version: 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Feb 21, 2024
1 parent b3ccd64 commit bd500a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions development_guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ <h2 id="writing-tests">Writing tests</h2>
<p>The unit tests are pretty conventional, but the integration tests are a bit more challenging. The two sample tests provided below are copied from <code>islandora_tests.py</code>, and you can see their input files in <code>tests/assets/create_test</code> and <code>tests/assets/max_node_title_length_test</code>, respectively.</p>
<h3 id="a-simple-test">A simple test</h3>
<p>An example of a simple integration test is <code>TestCreate</code>, whose code (in <code>islandora_tests.py</code>) looks like this (with line numbers added for easy reference):</p>
<pre><code class="language-python">1. class TestCreate(unittest.TestCase):
<pre><code class="language-py">1. class TestCreate(unittest.TestCase):
2.
3. def setUp(self):
4. self.current_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -1112,7 +1112,7 @@ <h3 id="a-more-complex-test">A more complex test</h3>
<li>Clean up by deleting any Drupal entities created during the tests and also any temporary local files.</li>
</ol>
<p>An integration test that checks data in the node JSON is <code>TestUpdateWithMaxNodeTitleLength()</code>. Here is a copy of its code:</p>
<pre><code class="language-python">1. class TestUpdateWithMaxNodeTitleLength(unittest.TestCase):
<pre><code class="language-py">1. class TestUpdateWithMaxNodeTitleLength(unittest.TestCase):
2.
3. def setUp(self):
4. self.current_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit bd500a9

Please sign in to comment.