from .lib.csympy_wrapper import (Symbol, Integer, sympify, SympifyError, Add,
        Mul, Pow, sin, cos, sqrt, function_symbol, I)
from .utilities import var

from .lib.csympy_wrapper import (Symbol, Integer, sympify, SympifyError, Add,
        Mul, Pow, sin, cos, sqrt, function_symbol, I)
from .utilities import var

def test():
    import pytest, os
    return not pytest.cmdline.main(
        [os.path.dirname(os.path.abspath(__file__))])

Add test function so tests can be run from within python terminal
Add test function so tests can be run from within python terminal

import csympy
csympy.test()

  from .lib.csympy_wrapper import (Symbol, Integer, sympify, SympifyError, Add,
          Mul, Pow, sin, cos, sqrt, function_symbol, I)
  from .utilities import var
  
+ def test():
+     import pytest, os
+     return not pytest.cmdline.main(
+         [os.path.dirname(os.path.abspath(__file__))])
+ 
Add test function so tests can be run from within python terminal
## Code Before:
from .lib.csympy_wrapper import (Symbol, Integer, sympify, SympifyError, Add,
        Mul, Pow, sin, cos, sqrt, function_symbol, I)
from .utilities import var

## Instruction:
Add test function so tests can be run from within python terminal
## Code After:
from .lib.csympy_wrapper import (Symbol, Integer, sympify, SympifyError, Add,
        Mul, Pow, sin, cos, sqrt, function_symbol, I)
from .utilities import var

def test():
    import pytest, os
    return not pytest.cmdline.main(
        [os.path.dirname(os.path.abspath(__file__))])
