<commit_before>package com.jetbrains.env.python;

import com.jetbrains.env.python.debug.PyEnvTestCase;
import com.jetbrains.env.ut.PyDocTestTask;
import junit.framework.Assert;

/**
 * User : catherine
 */
public class PythonDocTestingTest extends PyEnvTestCase{
  public void testUTRunner() {
    runPythonTest(new PyDocTestTask("/testRunner/env/doc", "test1.py") {

      @Override
      public void after() {
        Assert.assertEquals(3, allTestsCount());
        Assert.assertEquals(3, passedTestsCount());
        allTestsPassed();
      }
    });<commit_msg>moved doctest tests to env tests<commit_after>package com.jetbrains.env.python;

import com.jetbrains.env.python.debug.PyEnvTestCase;
import com.jetbrains.env.ut.PyDocTestTask;

/**
 * User : catherine
 */
public class PythonDocTestingTest extends PyEnvTestCase{
  public void testUTRunner() {
    runPythonTest(new PyDocTestTask("/testRunner/env/doc", "test1.py") {

      @Override
      public void after() {
        assertEquals(3, allTestsCount());
        assertEquals(3, passedTestsCount());
        allTestsPassed();
      }
    });
  }

  public void testClass() {
    runPythonTest(new PyDocTestTask("/testRunner/env/doc", "test1.py::FirstGoodTest") {

      @Override
      public void after() {
        assertEquals(1, allTestsCount());
        assertEquals(1, passedTestsCount());
      }
    });
  }

  public void testMethod() {
    runPythonTest(new PyDocTestTask("/testRunner/env/doc", "test1.py::SecondGoodTest::test_passes") {

      @Override
      public void after() {
        assertEquals(1, allTestsCount());
        assertEquals(1, passedTestsCount());
      }
    });
  }

  public void testFunction() {
    runPythonTest(new PyDocTestTask("/testRunner/env/doc", "test1.py::factorial") {

      @Override
      public void after() {
        assertEquals(1, allTestsCount());
        assertEquals(1, passedTestsCount());
      }
    });
{'fraction_non_alphanumeric': 0.131811105345096, 'fraction_numerical': 0.007784120394395433, 'mean_word_length': 3.2844444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6889091', 'n_tokens_mistral': 587, 'n_tokens_neox': 568, 'n_words': 105}